The US went to war with Spain in 1898 over the Cuban struggle for independence from Spanish rule. Spain's harsh policies in Cuba, including relocating many civilians to camps where thousands died, generated sympathy for the Cuban rebels in the US. Yellow journalism by newspapers exaggerated Spanish atrocities and fueled public support for war. The sinking of the USS Maine in Havana harbor also increased tensions. Under public pressure, McKinley asked Congress to declare war on Spain. The four month war ended in victory for the US, resulting in Cuba gaining nominal independence while becoming a US protectorate and the US acquiring Puerto Rico, Guam, and control of the Philippines.