Images from the scene showed the walls on the top four or five storeys of the residential building in the heart of the La Latina neighbourhood had been blown out
At least three people have been killed in a huge explosion that ripped through a building in Madrid, with officials confirming it was caused by a gas leak.
Images from the scene showed the walls on the top four or five storeys of the residential building in the heart of the La Latina neighbourhood had been blown out, with vast quantities of debris spreading far and wide.
Government representative Jose Manuel Franco told Spain's public TV that the blast occurred as a team of workmen were repairing the building's boiler.
Speaking at the scene, Mayor Jose Luis Martinez-Almeida said an 85-year-old woman had died along with a man whose age was not immediately clear, while the third victim was still "under the rubble."
Another 11 people were injured, one of whom was in serious condition. Church sources told AFP it was a recently ordained priest.
Despite the force of the blast, no one was hurt in the elderly care home next door, nor in an adjacent school where tonnes of rubble fell into the playground while the children were in lessons, city officials said.
Wednesday was the first day that schools reopened after a nine-day closure due to the heaviest snowfall in Madrid in 50 years.
"This could have been a massive tragedy," said Martinez-Almeida.
Along the street, at least 15 cars were badly damaged by the force of the explosion, which gutted most of the six-storey residential building.
"I was just leaving a nearby clinic when I heard a very big explosion, it was so big I thought it was a bomb," Valentin Moreno, a 48-year-old salesman, told AFP.
"There were people running and a lot of smoke and when I got there, I saw the building's facade had been completely destroyed."
Franco confirmed it was a "gas explosion" and said there were three dead and one missing, indicating the toll could rise further.
Hundreds of police and rescuers filled the streets around the building, which the archdiocese said housed local priests who worked in the area.
The head of the elderly care home next door said there were no injuries among staff or residents.
"There were just over 100 people inside at the time," Antonio Berlanga, director of the four-storey Los Nogales La Paloma residence, told Spanish public TV.
Nine fire crews and 11 ambulances were dispatched to the scene which was completely closed off to traffic and pedestrians, AFP correspondents said.
Three hours after the explosion occurred, smoke and flames could still be seen emerging from the building as a police helicopter flew overhead, an AFP correspondent said.
Aerial footage released by police appeared to show that the top four or five floors had been completely blown out, with the blast also bringing down the wall of a building in Puerta de Toledo square, some 50 metres (165 feet) away, he said.
"Unfortunately we are mourning the death of several people in the explosion on Calle Toledo," tweeted Spanish Prime Minister Pedro Sanchez, offering his condolences to the families of the dead and the injured.
Lola Lopez Bravo was having lunch with her six-year-old son in their nearby home when the blast occurred, bringing down the wall in her apartment.
"We were eating, suddenly we heard a noise and the wall in front of us started falling on top of us," the 44-year-old told AFP.
"There was a huge hole in the wall and then the rubble started falling so we ran out of the house and went to a neighbour's place."
Lorenzo Fomento, a 43-year-old Italian salesman who was working from home at a nearby apartment, told AFP the noise was tremendous.
"The noise was very loud, very loud, really," he said.
"I never heard something as loud before."