On October 20, 1687, an earthquake destroyed the city of Lima, killing 600 people there and 700 in Callao. Before the earthquake, Lima had been a city of straight streets, brick and adobe houses with wooden balconies, and seventy churches and bell towers. The earthquake destroyed much of this, including nearly all the churches and the city walls that were under construction. Wheat production in the area around Lima was interrupted. The viceroy and his wife took extraordinary measures to aid the victims, expending much money from their own pockets. The city was rebuilt, only to be destroyed again by the earthquake of 1746.