fled to East Florida. On June 8, Jackson was appointed a brigadier general in the United States Army, and 10 days later was made a brevet major general with command of the Seventh Military District, which included Tennessee, Louisiana, the Mississippi Territory, and the Muscogee Creek Confederacy. With President James Madison's approval, Jackson imposed the Treaty of Fort Jackson. The treaty required all Creek, including those who had remained allies, to surrender of land to the United States. Jackson then turned his attention to the British and Spanish. He moved his forces to Mobile, Alabama in August. He accused the Spanish governor of West Florida, Mateo González Manrique, of arming the Red Sticks and threatened to attack. The governor responded by inviting the British to land at Pensacola to defend it, which violated Spanish neutrality. The British attempted to capture Mobile, but their invasion fleet was repulsed at Fort Bowyer, located at the mouth of Mobile Bay. Jackson then invaded Florida, defeating the Spanish and British forces at the Battle of Pensacola on November 7. Afterwards, the Spanish surrendered and the British withdrew. Weeks later, Jackson learned that the British were planning an attack on New Orleans, which was the gateway to the Lower Mississippi River and control of the American West. He evacuated Pensacola, strengthened the garrison at Mobile, and led his troops to New Orleans. Battle of New Orleans Jackson arrived in New Orleans on December 1, 1814. There he instituted martial law because he worried about the loyalty of the city's Creole and Spanish inhabitants. He augmented his force by forming an alliance with Jean Lafitte's smugglers and raising units of free African Americans and Creek, paying non-white volunteers the same salary as whites. This gave Jackson a force of about 5,000 men when the British arrived. The British arrived in New Orleans in mid-December. Admiral Cochrane was the overall commander of the operation; General Edward Pakenham commanded the army of 10,000 soldiers, many of whom had served in the Napoleonic Wars. As the British advanced up the east bank of the Mississippi River, Jackson constructed a fortified position to block them. The climactic battle took place on January 8 when the British launched a frontal assault. Their troops made easy targets for the Americans protected by their parapets, and the attack ended in disaster. General Packenham was killed and the British suffered over 2,000 casualties; the