In 1898, the Spanish-American War overwhelmed Spain, allowing the Philippine Revolutionary Army to push out Spain and reconquer all but Manila, which was occupied by the Americans. Having defeated Spain, Aguinaldo issued the Philippine Declaration of Independence. However, six months later, in the 1898 Treaty of Paris, Spain ceded the Philippines to the United States. After two months, the Philippine-American War began.