This enable him to surrender with dignity and avoid being massacred by the Filipino forces. In September Aguinaldo convened a congress at Malolos, a town nearly 19 miles (about 30 km) north of Manila, and the Malolos Constitution was promulgated on January 21, 1899 establishing the First Republic of the Philippines.