A strong earthquake and at least four aftershocks have struck off the central coast of Peru.
At least 350 people have been killed and 200 injured in the southwestern cities of Ica and Pisco.
Stuart Sipkin of the US Geological Survey told Al Jazeera the earthquake had been recorded as having a magnitude of 7.9.
Al Jazeera's Gabriel Elizondo said from the capital, Lima, that downed phone lines were making it difficult to ascertain the extent of damage in outlying areas.
The earthquake occured at 1840 local time (2341 GMT) on Wednesday and was felt for a number minutes.
The Pacific Tsunami Warning Centre in Hawaii issued a tsunami warning for South America's Pacific coast but later cancelled it.
News station Canal N said a church collapsed in Ica, south of Lima, killing at least 12 people and injuring 70.
TvPeru said others were killed or injured by collapsing buildings in the coastal cities located near the epicentre of the quake.
Witnesses said the tremors shook buildings in two bouts, lasting between 20 seconds and two minutes each.
Milagros Meneses, 35, a resident in the city of Canete south of the capital Lima, said: "I was with my children when the movement started and then the walls collapsed. My house was destroyed. The hospital gave me a tent for my kids to sleep in."
Alan Garcia, Peru's president, sent condolences to the families of the earthquake's victims and said the country, which has suffered devastating earthquakes in the past, narrowly escaped a major disaster.
Garcia said: "It fortunately did not cause a catastrophe with an immense number of victims."
There were fears that the strong temblor would have been deadly for shanty towns surrounding the capital.
The earthquake cut power lines and disrupted water services in Lima.
Local media reported a fire in one district in the capital and homes destroyed in Pisco, a poor township near the epicentre.
The health ministry declared a disaster as ambulances and rescue workers rushed to the city.
"People here hugging and crying in fear on the streets," said Cristyane Marusiak, a resident.
The US Geological Survey said the quake hit about 40km northwest of Chincha Alta.