The Spanish-American War spurred nationalism, which resulted in the United States annexing Hawaii in 1898.