The Biak-na-Bato Pact established a ceasefire between Emilio Aguinaldo's rebel forces and the Spanish government in 1897. Under the pact, Aguinaldo agreed to go into exile in Hong Kong in exchange for a large monetary payment and a promise of reforms and independence for the Philippines within three years. However, neither side fully trusted the other, and clashes continued after Aguinaldo left. In 1898, Aguinaldo returned from exile and declared Philippine independence after the US defeated Spain in the Battle of Manila Bay during the Spanish-American War. The Treaty of Paris later that year ended the war by transferring control of the Philippines from Spain to the United States.