 He enlisted in the United States Army during the Mexican–American War, serving as lieutenant colonel of the 2nd Mississippi Volunteer Infantry.When hostilities ceased, he returned to Mississippi and practiced law in Aberdeen.In 1850, he was elected to Congress as a Whig, defeating future Civil War general Winfield S. Featherston.