The United States fought a war against Spain in 1898. This conflict is commonly known as the Spanish-American War. It arose primarily due to the explosion of the USS Maine in Havana Harbor, which was blamed on Spain by the U.S. government. The war lasted a few months and resulted in the United States acquiring territories such as Puerto Rico, Guam, and the Philippines, while also asserting its influence over Cuba.