1898: Spanish–American War: On April 25, 1898, the United States declared war with Spain, ostensibly aligned with Cuban rebels. The war followed a Cuban insurrection, the Cuban War of Independence against Spanish rule and the sinking of in the harbor at Havana.