The Spanish–American War was a war fought between Spain and the United States of America in 1898. The war was fought in part because many people wanted Cuba, one of the last parts of the Spanish Empire, to become independent. Many Americans also wanted their country to get a colonial empire.