The Philippines unilaterally declared independence from Spain on 12 June 1898 under the leadership of President Emilio Aguinaldo, culminating the 1896 Revolution. Unbeknownst to the newly established government and the Filipino people in general, the United States of America had secretly arranged to purchase the colony along with several other possessions from Spain through the Treaty of Paris that concluded the Spanish–American War. After staging a mock battle in Manila, the Philippine–American War ensued until the Philippine government capitulated in 1902.