The Spanish–American War (April 21 – August 13, 1898) was fought between Spain and the United States in 1898. It began with the sinking of the USS Maine in Havana Harbor in Cuba, and resulted in the U.S. acquiring sovereignty over Puerto Rico, Guam, and the Philippines, and establishing a protectorate over Cuba. It represented U.S. intervention in the Cuban War of Independence and Philippine Revolution, with the latter later leading to the Philippine–American War. The Spanish–American War brought an end to almost four centuries of Spanish presence in the Americas, Asia, and the Pacific; the United States meanwhile not only became a major world power, but also gained several island possessions spanning the globe, which provoked rancorous debate over the wisdom of expansionism.
The 19th century represented a clear decline for the Spanish Empire, while the United States went from a newly founded country to a rising power. In 1895, Cuban nationalists began a revolt against Spanish rule, which was brutally suppressed by the colonial authorities. W. Joseph Campbell argues that yellow journalism in the U.S. exaggerated the atrocities in Cuba to sell more newspapers and magazines, which swayed American public opinion in support of the rebels. But historian Andrea Pitzer also points to the actual shift toward savagery of the Spanish military leadership, who adopted the brutal reconcentration policy after replacing the relatively conservative Governor-General of Cuba Arsenio Martínez Campos with the more unscrupulous and aggressive Valeriano Weyler, nicknamed "The Butcher." President Grover Cleveland resisted mounting demands for U.S. intervention, as did his successor William McKinley. Though not seeking a war, McKinley made preparations in readiness for one.