 In the summer of 1814, when Dr. Samuel Anderson raised the Mifflin Guards, Edwards joined as a private and served as company clerk.While still in active service, Edwards was elected as a member of the Pennsylvania House of Representatives from 1814 to 1816.In 1819, Edwards was elected as a Federalist to the Sixteenth and Seventeenth Congresses and served until 1823.