At 1773, a series of earthquakes in July and August totally destroyed the city in the Valley of Panchoy. It was then that the capital was moved to the Ermita Valley , the present capital of the country, Guatemala City .