The First Philippine Republic was established on January 22, 1899 through the promulgation of the Malolos Constitution. Emilio Aguinaldo was its first president and had previously declared Philippine independence on June 12, 1898. The republic maintained governance until April 1, 1901 when the Philippines was ceded to the United States through the Treaty of Paris, ending the Spanish-American War.