Initially Emilio helped USA to fight against Spain but once Spain was defeated,he declared Philippines an independent state which USA did not like and attacked on Philippines but fought bravely and declared Philippines an independent nation.After the U.S. declared war on Spain, Aguinaldo saw a possibility that the Philippines might achieve its independence; the U.S. hoped instead that Aguinaldo would lend his troops to its effort against Spain.He returned to Manila on May 19, 1898 and declared Philippine independence on June 12.When the United States refused to recognize his authority and instead sent troops to occupy the islands, the Philippine Republic under Aguinaldo's leadership declared war on the United States.