Spain entered the American Revolutionary War on the side of France but not the Thirteen Colonies. Bernardo de Gálvez, governor of Spanish Louisiana, led a military campaign along the Gulf Coast, capturing Baton Rouge and Natchez from the British in 1779, Mobile in 1780, and Pensacola in 1781.