The Filipino general, Emilio Aguinaldo, announced independence and established Asia's first republic. This put pressure on US President, William McKinley, to annex the Philippines. On February 4th, 1899, brutal fighting against the American and Filipino soldiers emerged. America hoped for a short conflict but more than 700,000 soldiers fought. An American occupation of Manila brought the war against Spain in the Philippines to an end, easing the American win due to their superiority of their arms. The US was not Spain's only enemy in the islands, a revolt against Spanish rule began in 1896, Spain was given priority to holding Cuba and devoted its resources to suppressing the Philippines, helping the US. General Dewey, American Admiral of the Navy, had allowed Aguinaldo to come back to the islands after fleeting to Hong Kong. Filipino forces then ended Spanish authority, leaving Manila to be taken. Americans realized that Spain could no longer send assistance, the Spanish in Manila knew they could not fight against Dewey (The American Army). American Army took over the south of the city, ultimately taking Manila. The Filipino army was unable to defeat the US in conventional warfare so they adopted guerrilla tactics. Aguinaldo had determination and wanted to be independent, but the United States purchased Philippines from Spain in the Treaty of Paris, which ended the Spanish-American War, making this war inevitable.