The central issue that had drawn Spain and the United States into war Cuba's struggle for independence was resolved in that island's Cuba's freedom was guaranteed by the Paris Treaty of 1898.
The Cuban independence war ended with the Harmburg Treaty in 1902.