When Jackson defeated Adams in the 1828 presidential election, he removed Crittenden from his post as district attorney because of his association with Clay and his opposition to Jackson's financial policies.