 He served as a member of the Pennsylvania State Senate for the 11th district from 1813 to 1817 and was the first Roman Catholic state senator in Pennsylvania.He was a delegate to the Pennsylvania State Constitutional Convention in 1837 and 1838.In 1821, he was elected by the Federalist party to the Seventeenth United States Congress (1821–1823).