Question: Before being elected president, how did the president who led the American occupation of Spanish West Florida during the First Seminole War gain fame?
Context: Kinache (c. 1750-c.  1819) was a Seminole chieftain who commanded Seminole forces against the United States during the American Revolution and later during the First Seminole War.  He is also known as Kinhega, Kinheja, Kinhija, Opie Mico, Kapitca Mico, Capichee Mico, Tom Perryman and Lye Drop Mico (the latter meaning ""Far Off Warrior""). The Second Seminole War, also known as the Florida War, was a conflict from 1835 to 1842 in Florida between various groups of Native Americans collectively known as Seminoles and the United States, part of a series of conflicts called the Seminole Wars.  The Second Seminole War, often referred to as "the" Seminole War, is regarded as "the longest and most costly of the Indian conflicts of the United States." The Seminole Nation of Oklahoma is a federally recognized Native American tribe based in the U.S. state of Oklahoma.  It is the largest of the three federally recognized Seminole governments, which include the Seminole Tribe of Florida and the Miccosukee Tribe of Indians of Florida.  Its members are descendants of the 3,000 Seminoles who were forcibly removed from Florida to Indian Territory, along with 800 Black Seminoles, after the Second Seminole War.  The Seminole Nation of Oklahoma is headquartered in Wewoka within Seminole County, Oklahoma.  Of 18,800 enrolled tribal members, 13,533 live within the state of Oklahoma.  The tribe began to revive its government in 1936 under the Indian Reorganization Act.  While its reservation was originally larger, today the tribal jurisdictional area covers Seminole County, Oklahoma, within which it has a variety of properties. William King (died January 1826) was an American army officer who was military governor of West Florida from May 26, 1818 to February 4, 1819.  He was appointed to the position by Andrew Jackson, who led the American occupation of Spanish West Florida during the First Seminole War. The Republic of West Florida was a short-lived republic in the western region of Spanish West Florida for several months during 1810.  It was annexed and occupied by the United States later in 1810 and is today an eastern part of the U.S. state of Louisiana. José Masot, also known as José Fascot, was a governor and military commander.  He served as Governor of West Florida from March 8, 1816 - May 26, 1818.  Masot was in command during the initial stages of The First Seminole War until he was deposed by American general Andrew Jackson and replaced with William King.  Masot also served as subdelegate of the Intendant and superintendent general of Florida. John Horse (c. 1812–1882), also known as Juan Caballo, Juan Cavallo, John Cowaya (with spelling variations) and Gopher John, was of mixed ancestry (African and Seminole Indian) who fought alongside the Seminoles in the Second Seminole War in Florida.  He rose to prominence in the third year of what was to become a seven-year war when the first generation of Black Seminole leaders was largely decimated and the primary Seminole war chief, Osceola (Asi Yahola), fell into the hands of the American military commander, General Thomas Sydney Jesup.  John Horse had been fighting alongside Osceola and acting as his interpreter by this time.  When they were seized while under a flag of truce during negotiations with Jesup's emissary, Florida militia general Joseph Hernandez, John Horse found himself imprisoned along with Osceola and other members of his band at Fort Marion (Castillo de San Marcos), the old Spanish fort that formerly defended St. Augustine, the colonial capital of Spanish Florida. The Arbuthnot and Ambrister incident occurred in 1818 during the First Seminole War.  American General Andrew Jackson invaded Spanish Florida and captured and executed Alexander George Arbuthnot and Robert C. Ambrister, two British subjects charged with aiding Seminole and Creek Indians against the United States.  Arbuthnot and Armbrister were tried and executed in Bay County, Florida near what continues to be called Court Martial Lake.  Jackson's actions triggered short-lived protests from the British and Spanish governments and an investigation by the United States Congress.  Congressional reports found fault with Jackson's handling of the trial and execution of Arbuthnot and Armbrister, but Congress chose not to censure the popular general. Thlocklo Tustenuggee (also known as Thlocko, Thlocco, and Tiger Tail) was one of the most prominent Seminole leaders in the Second Seminole War.  He spoke English fluently, and also spoke Muscogee.  Tustenuggee was one of the three leaders of the 300 Seminoles who fought in the battle that became known as the Dade Massacre.  During the war, he and Halleck Tustenuggee, another prominent Seminole leader in the war, met with General Walker Keith Armistead to negotiate, but negotiations broke down and the war resumed.  As the war waned, Armistead used money to bribe several Seminole leaders to surrender, but Tustenuggee refused to be bribed and he continued to lead his band in fighting.  When the war ended, his Seminole band was one of the few that remained in Florida.  In 1843, Tustenuggee and 26 of his followers were forcibly migrated from Florida to New Orleans, Louisiana.  They were transported by the USS "Lawrence" along with 65 other Native Americans and three black slaves.  Tustenuggee then committed suicide by swallowing powdered glass.  His death was reported in newspapers, as were the deaths of other prominent Native American leaders who died in connection with the Trail of Tears. Andrew Jackson (March 15, 1767 – June 8, 1845) was an American soldier and statesman who served as the seventh President of the United States from 1829 to 1837.  Before being elected to the presidency, Jackson gained fame as a general in the United States Army and served in both houses of Congress.  As president, Jackson sought to advance the rights of the "common man" against a "corrupt aristocracy" and to preserve the Union.
Answer: as a general in the United States Army