land and settlements. After several months of warfare the natives were defeated, and the Spaniards made a peace pact with the councils of Rajah Sulaiman III, Lakan Dula, and Rajah Matanda who handed over Manila to the Spaniards. Legazpi declared the area of Manila as the new capital of the Spanish colony on June 24, 1571, because of its strategic location and rich resources. He also proclaimed the sovereignty of the Monarchy of Spain over the whole archipelago. King Philip II of Spain delighted at the new conquest achieved by Legazpi and his men, awarding the city a coat of arms and declaring it as: Ciudad Insigne y Siempre Leal (English: "Distinguished and Ever Loyal City"). It was settled and became the political, military, and religious center of the Spanish Empire in Asia. Construction of the city walls The city was in constant danger of natural and man-made disasters and worse, attacks from foreign invaders. In 1574, a fleet of Chinese pirates led by Limahong attacked the city and destroyed it before the Spaniards drove them away. The colony had to be rebuilt again by the survivors. These attacks prompted the construction of the wall. The city of stone began during the rule of Governor-General Santiago de Vera. The city was planned and executed by Jesuit Priest Antonio Sedeno in accordance to the Laws of the Indies, and was approved by King Philip II's Royal Ordinance that was issued in San Lorenzo de El Escorial, Spain. The succeeding governor-general, Gómez Pérez Dasmariñas brought with him from Spain the royal instructions to carry into effect the said decree stating that "to enclose the city with stone and erect a suitable fort at the junction of the sea and river". Leonardo Iturriano, a Spanish military engineer specializing in fortifications, headed the project. Chinese and Filipino workers built the walls. Fort Santiago was rebuilt and a circular fort, known as Nuestra Senora de Guia, was erected to defend the land and sea on the southwestern side of the city. Funds came from a monopoly on playing cards and fines imposed on its excessive play. Chinese goods were taxed for two years. Designed by Geronimo Tongco and Pedro Jusepe, construction of the walls began on 1590 and continued under many governor-generals until 1872. By the middle of 1592, Dasmarinas wrote the King about the satisfactory development of the new walls and fortification. Since the