An imperialistic struggle largely over territorial ambitions in the Pacific, the Spanish-American War was provoked on February 15, 1898, by the mysterious sinking of the U.S. battleship Maine, anchored in Havana harbor. Prodded by the jingoism of the Hearst newspapers, the United States eventually declared war on Spain in April, 1898. After taking possession of the Philippines, the U.S. Navy blockaded the port of Santiago de Cuba. On July 3, Spanish ships tried to break the blockade but were defeated. On August 14, 1898, Spain surrendered, ceding Guam and Puerto Rico to the U.S. and selling the Philippines for $20,000,000. The U.S. was also granted temporary sovereignty over Cuba, with the guarantee of its future independence.