In 1779, Spain entered the American Revolutionary War on the side of France but not the Thirteen Colonies.[5] 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.