Answer:
by becoming a war hero
Explanation:
in 1812 he defeated the British in the battle of New Orleans
He gained the support of the common people.