The Spanish-American War was a conflict between the Kingdom of Spain and the United States of America from April to August 1898. The immediate cause of the war was the sinking of the battleship Maine in Havana, Cuba. The war ended in victory for the United States and the end of the Spanish Empire in the Caribbean and Pacific. Only 113 days after the outbreak of war, the Treaty of Paris ended the conflict and gave the United States control over the former Spanish colonies of Puerto Rico, the Philippines, and Guam, and control over the process of independence of Cuba, which was completed in 1902. Total American casualties were 4,200.