The Spanish-American War began due to tensions between Spain and Cuban independence fighters, exacerbated by yellow journalism in American newspapers. The sinking of the USS Maine in Havana harbor led the U.S. to declare war on Spain in 1898. The U.S. defeated Spain in Cuba and seized control of Puerto Rico, Guam, and the Philippines. The Treaty of Paris ended the war and granted independence to Cuba while ceding Puerto Rico and the Philippines to the U.S.