 In 1898, Davenport was nominated by the Democratic party for Congress and was elected to the 56th United States Congress, serving from March 4, 1899 to March 3, 1901, but was an unsuccessful candidate for re-nomination in 1900.Following this loss, Davenport resumed the practice of law in Plymouth until his death in 1921 at age 60 following a prolonged illness.He was buried in the Shawnee Cemetery, Plymouth, Pennsylvania.