The Spanish–American War was a conflict in 1898 between Spain and the United States, the result of American intervention in the Cuban War of Independence. American attacks on Spain's Pacific possessions led to involvement in the Philippine Revolution and ultimately to the Philippine–American War.
Revolts against Spanish rule had occurred for some years in Cuba. There had been war scares before, as in the Virginius Affair in 1873. In the late 1890s, American public opinion was agitated by anti-Spanish propaganda led by journalists such as Joseph Pulitzer and William Hearst which used yellow journalism to criticize Spanish administration of Cuba. After the mysterious sinking of the American battleship Maine in Havana harbor, political pressures from the Democratic Party and certain industrialists pushed the administration of Republican President William McKinley into a war he had wished to avoid. Compromise was sought by Spain, but rejected by the United States which sent an ultimatum to Spain demanding it surrender control of Cuba. First Madrid, then Washington, formally declared war.
Although the main issue was Cuban independence, the ten-week war was fought in both the Caribbean and the Pacific. American naval power proved decisive, allowing U.S. expeditionary forces to disembark in Cuba against a Spanish garrison already brought to its knees by nationwide Cuban insurgent attacks and further wasted by yellow fever. Numerically superior Cuban, Philippine, and American forces obtained the surrender of Santiago de Cuba and Manila despite the good performance of some Spanish infantry units and fierce fighting for positions such as San Juan Hill. With two obsolete Spanish squadrons sunk in Santiago de Cuba and Manila Bay and a third, more modern fleet recalled home to protect the Spanish coasts, Madrid sued for peace.
The result was the 1898 Treaty of Paris, negotiated on terms favorable to the U.S., which allowed temporary American control of Cuba, and ceded indefinite colonial authority over Puerto Rico, Guam and the Philippine islands from Spain.