PEABODY, Mass. (AP) — Former Rep. Nicholas Mavroules, who served seven terms in Congress before being voted out of office during a corruption scandal that sent him to prison, has died. He was 74.

Mavroules died Thursday while recovering from gastric surgery, a funeral home said.

The Democrat became mayor of Peabody, just north of Boston, in 1967. He served in Congress from 1978 to 1992, when he lost to Republican Peter Torkildsen in 1992 after being indicted on bribery and racketeering charges in a federal investigation.

Mavroules pleaded guilty in 1993 to charges that included failing to report the use of free cars as income and accepting a gratuity in the form of a low-rent beach house. He served 11 months in prison.

In Washington, Mavroules was chairman of the House subcommittee on investigations. He helped expose major cost overruns on Navy aircraft and shed light on the deadly 1989 explosion on the battleship USS Iowa.