In 1779, Galvez and his troops, composed of Puerto Ricans and people from other Spanish colonies, distracted the British from the revolution by capturing Pensacola, the capital of the British colony of West Florida and the cities of Baton Rouge, St. Louis and Mobile. The Puerto Rican troops, under the leadership of Brigadier General Ramón de Castro,[23] helped defeat the British and Indian army of 2,500 soldiers and British warships in Pensacola.[24] Galvez and his multinational army also provided the Continental Army with guns, cloth, gunpowder and medicine shipped from Cuba up the Mississippi River. General Ramón de Castro, who was Galvez's Aide-de-camp in the Mobile and Pensacola campaigns, became the appointed governor of Puerto Rico in 1795.[25][26]