Spain became involved in the American Revolutionary War in order to expand their territories in Louisiana and Florida and to seek a recapture of Gibraltar. The Spanish Captain-General of Louisiana, Bernardo de Gálvez, in 1779 launched several offensives at Baton Rouge and Natchez, securing the way for the reconquest of Florida.