Spanish–American War
Spain lost the sea war and so had to give up its colonies of Cuba, the Philippines, Puerto Rico, and Guam.  All of those colonies, except for Cuba, became US colonies after the war.