In the 1800s, the quest for Latin American independence from Spain spread to Puerto Rico, in the short lived revolution known as the Grito de Lares and culminating with the Intentona de Yauco. The island was invaded by the United States during the Spanish–American War. After the war ended, Spain officially ceded the island to the United States under the terms established in the Treaty of Paris of 1898.