Given the task definition and input, reply with output. In this task you will be given a text passage from a trivia quiz. You should choose the category this question belongs to from these categories: History, Science, Social Science, Fine Arts, Literature. You can only choose one category, so if in doubt, please choose the closest match.

In 1834, this man ran for governor of his home state on the Anti Masonic ticket but lost to John Davis. This president appointed Robert Trimble to the Supreme Court, and was ousted as incumbent in an election that saw his opponent's wife Rachel accused of bigamy. This defending attorney in the Amistad case sorted out border disputes and acquired Florida in a treaty signed with Spanish diplomat Luis Onis. He beat out William Crawford, among others, because no candidate won the majority of electoral votes in the election of 1824 that was swung by Henry Clay's "corrupt bargain. " For 10 points, name this sixth president of the United States, son a president.
History