Caloocan became a municipality when it was separated from Tondo in 1815. Its original territory extended to the foothills of Marikina, San Mateo and Montalban to the east; Tinajeros, Tanza, and Tala rivers to the north; San Francisco del Monte, Sampalok, Santa Cruz and Tondo in the south; and Dagat-dagatan and Aromahan to the west. The local government building was set up on the relatively well-settled portion just above Libis Espina. The old Aromahan chapel was finally abandoned and a new church was built facing the municipal hall. To escape the Spanish authorities, many from the area abandoned the town proper and sought refuge in the grasslands of Balintawak and Pugad-Lawin, in which the people fought the landlords of Hacienda de Maysilo for terrestrial rights, which went on for almost a hundred years.