He became Attorney General of New Jersey in 1817, turned down an appointment to the New Jersey Supreme Court and became a United States Senator in 1829, serving in that capacity until 1835.
At the 1844 Whig National Convention, competing with Millard Fillmore, John Davis and John Sergeant, he was selected as the Whig vice-presidential candidate.