During the British occupation of Manila, when Manila fell to the British, it became capital of the exiled government of Governor General Simón de Anda y Salazar from October 6, 1762, to May 30, 1764. The provincial offices were temporarily moved to Factoría (now San Isidro, Nueva Ecija). Through a decree of the King of Spain on November 9, 1765, Bacolor became "Villa de Bacólor", one of the only three villas in the Philippines and was granted a special coat of arms. Simón de Anda organized an army of natives for the defense of Bacolor and with the aim of recapturing Manila.