On April 24, 1898, Spain declared war on the United States after rejecting America's ultimatum to withdraw from Cuba.