<P> The main issue was Cuban independence . Revolts had been occurring for some years in Cuba against Spanish rule . The U.S. later backed these revolts upon entering the Spanish--American War . There had been war scares before, as in the Virginius Affair in 1873, but in the late 1890s, U.S. public opinion was agitated by anti-Spanish propaganda led by newspaper publishers such as Joseph Pulitzer and William Randolph Hearst which used yellow journalism to call for war . The business community across the United States had just recovered from a deep depression and feared that a war would reverse the gains . It lobbied vigorously against going to war . </P> <P> The United States Navy armoured cruiser Maine had mysteriously sunk in Havana Harbor; political pressures from the Democratic Party pushed the administration of Republican President William McKinley into a war that he had wished to avoid . </P> <P> President McKinley signed a joint Congressional resolution demanding Spanish withdrawal and authorizing the President to use military force to help Cuba gain independence on April 20, 1898 . In response, Spain severed diplomatic relations with the United States on April 21 . On the same day, the U.S. Navy began a blockade of Cuba . On April 23, Spain stated that it would declare war if the US forces invaded its territory . On April 25, the U.S. Congress declared that a state of war between the U.S. and Spain had de facto existed since April 21, the day the blockade of Cuba had begun . The United States sent an ultimatum to Spain demanding that it surrender control of Cuba, but due to Spain not replying soon enough, the United States had assumed Spain had ignored the ultimatum and continued to occupy Cuba . </P> <P> The ten - week war was fought in both the Caribbean and the Pacific . As the American agitators for war well knew, U.S. naval power proved decisive, allowing expeditionary forces to disembark in Cuba against a Spanish garrison already facing nationwide Cuban insurgent attacks and further wasted by yellow fever . American, Cuban, and Philippine 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 . Madrid sued for peace after two obsolete Spanish squadrons sunk in Santiago de Cuba and Manila Bay and a third, more modern fleet was recalled home to protect the Spanish coasts . </P>

Who declared war first in the spanish american war
find me the text answering this question