On June 1779, during the American Revolutionary War, the Spanish government declared war against Britain and established an alliance with the United States. At the time the British possessed Fort Charlotte, which was originally built by the French in 1732 and taken over by the British During the French and Indian War.
The Spanish Military launched a land and naval attack, known as the Battle of Fort Charlotte, against the British forces. March 13, 1780 the Battle of Fort Charlotte ended.
On March 9, 1781, the Spanish navy, under the command of General Don Bernardo de Gálvez, began the Siege of Pensacola. General Don Bernardo de Gálvez launched another attack on Fort Charlotte and drove the British out of the area. General Don Bernardo de Gálvez utilized the fort as the planning grounds for the rest of the siege that lasted until May 10, 1781.