Answer:
The War of 1812
Step-by-step explanation:
During the War of 1812, the British burned down the White House and fought on American land.
World War I took place in Europe, the American Revolution was before the War of 1812, and the Spanish-American War was not on American soil.
Therefore the Pearl Harbor bombing was the first attack on U.S. territory by a foreign power since the War of 1812