In October 1899 American forces were in San Fernando, Pampanga and the Philippine Republic was headquartered not far north of there, in Angeles. On October 12, an American offensive to the north forced the Philippine Republic to relocate its headquarters in November to Tarlac, and then to Bayombong, Nueva Vizcaya. On November 13, under pressure by American forces, Aguinaldo and a party departed Bayombong by rail for Calasiao, Pangasinan, from where they immediately proceeded eastwards to Sta. Barbara in order to evade pursuing American forces. In Sta. Barbara, they joined a force of some 1200 armed men led by General Gregorio del Pilar.