sentences:  He was elected as a Federalist to the 17th United States Congress, holding office from December 3, 1821, to March 3, 1823.Afterwards he resumed the practice of law.After the death of his first wife, he married Ruth Benedict (1801–1870), and their son was Lewis Benedict Sterling (1836–1899).