PORTLAND, Maine — A former state legislator was sentenced Wednesday in U.S. District Court to 13 months in federal prison for his role in a marriage fraud scheme, according to the U.S. attorney’s office.

Adam Mack, 40, of Portland pleaded guilty in March to one count each of aiding and abetting visa and marriage fraud and making false statements, according to a previously published report.

In addition to prison time, U.S District Judge D. Brock Hornby sentenced Mack to three years of supervised release.

“You have been cheating the system all along consistently,” the judge told Mack. “It’s the deterrence, both general and specific, and just punishment that I think are critical.”

Hornby’s statements were included in a press release from the U.S. attorney’s office announcing Mack’s sentence.

Hornby also sentenced Mack to an additional four months for violating the terms of his supervised release on a 2013 conviction for equity skimming.

According to court records, between October 2009 and January 2012, Mack unlawfully assisted foreign nationals from Russia and Ukraine who were seeking to become lawful permanent residents or green card holders by engaging in marriage and visa fraud, the press release said.

Mack served in the Maine House as the Republican representative for Standish, Frye Island and Limington from 1997 to 2000, according to a previously published report.

By pleading guilty, he also admitted to making false statements about his employment of foreign nationals to the U.S. Citizenship and Immigration Services.

“It’s always sad to see a former public servant fall so far from the path of public service,” said Special Agent in Charge Matthew Etre of U.S. Immigration and Customs Enforcement’s Homeland Security Investigations in Boston in the press release. “But today’s sentencing shows that no matter who you are, what position in the community you’ve held or what influence you thought you had, we will not hesitate to bring you to justice.”

Mack was convicted in April 2013 of misusing about $384,000 in funds held by his grandfather’s property management firm, DACO Associates, as collateral for a U.S. Department of Agriculture Rural Development loan of $1.1 million to acquire the Topsham-based Barron’s Hill low-income housing complex.

He was sentenced to six months in prison to be followed by three years of supervised release and ordered to pay $384,000 in restitution, according to a previously published report.

Mack was released from federal prison in November 2013, according to the U.S. Bureau of Prisons inmate locator website.

Mack faced up to 10 years in prison on the visa fraud charges and up to five years on the marriage fraud and false statement charges. He also faced fines of up to $250,000 on each charge.