The Battle of Manila (1570) was fought in Manila between the native Filipinos led by Raja Soliman (III) and the Spaniards led by Martin de Goiti, Maestro de Campo on May 24, 1570. The forces under Goiti were victorious and as a result Manila became a capital of the Philippines.
Miguel López de Legazpi was searching for a suitable place to establish the Spanish colonial capital after being forced to leave first Cebu and then Iloilo by Portuguese pirates. In 1570, Martin de Goiti and Captain Juan de Salcedo, with food stocks diminishing, discovered a sultanate on Luzon and saw its potential. De Goiti anchored at Cavite, and tried to establish his authority peaceably by sending a message of friendship to Maynila. Rajah Sulayman, its ruler, was willing to accept the friendship that the Spaniards were offering, but did not want to submit to its sovereignty. Thus, Sulayman declared war. As a result, De Goiti and his army attacked Maynila on June 1570. After a stout fight, Sulayman and his men were forced to flee uphill. After the Spaniards had left, the natives returned.
In 1571, the Spaniards returned with their entire force consisting of 280 Spaniards and 600 native allies, this time led by Legazpi himself. They occupied Maynila, and established a settlement there. On May 19, 1571, Legaspi gave the title city to the colony of Manila.
A Kapampangan chieftain of the Macabebe tribe, later identified as Tarik Sulayman, refused to submit to the Spaniards and, after failing to gain the support of the chieftains of Manila (Lakandula, Matanda) and [[Hagonoy, Bulacan], gathered a force composed of Kapampangan warriors]. He subsequent fought and lost the Battle of Bankusay Channel. The Spanish solidified their control over Manila and
Legazpi was able to establish a municipal government for Manila on June 24, 1571, which eventually became the capital of the entire Spanish East Indies colony and subsequently the capital of the Philippines.
The initial population of the city was around 250.