King was elected as a Whig to the Twenty-eighth and to the three succeeding Congresses and served from March 4, 1843, until his death on July 25, 1850. King served as chairman of the Committee on Expenditures on Public Buildings (Twenty-eighth Congress), Committee on Accounts (Twenty-ninth through Thirty-first Congresses), Committee on Revolutionary Claims (Thirtieth Congress).
Death and burial
King died in South Danvers, on July 25, 1850, he was interred in King Cemetery in Peabody.