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.