Spanish troops under Bernardo de Gálvez advanced and seized Baton Rouge and Mobile. In 1781 Spain captured Pensacola and its garrison. As part of the 1783 Peace of Paris, Great Britain ceded the territories of West Florida and East Florida back to Spain. When Spain acquired West Florida in 1783, the eastern British boundary was the Apalachicola River, but Spain in 1785 moved it eastward to the Suwannee River. The purpose was to transfer San Marcos and the district of Apalachee from East Florida to West Florida.