On June 12, 1898, Filipino revolutionary forces under General Emilio Aguinaldo proclaimed the sovereignty and independence of the Philippine Islands from Spanish colonial rule in Cavite el Viejo. This came after the Philippine Revolution against Spain began in 1896 and Spain's defeat in the Spanish-American War in 1898. However, the proclamation of independence was not recognized by the United States or Spain, and Spain later ceded the Philippines to the United States. This led to the Philippine-American War as the revolutionary government fought against U.S. sovereignty, ultimately being defeated. Full independence was granted by the U.S. via the Treaty of Manila in 1946.