A Bowdoin man was sentenced Wednesday to two years in prison for failing to register as a sex offender.

U.S. Attorney Halsey B. Frank said in a release that 40-year-old David Forrest Noel of Bowdoin will also be required to have five years of supervised release following his release from prison. Noel pleaded guilty on June 22, 2017.

According to court records, Noel was required by Maine law to register as a sex offender because he was convicted in 2010 in Massachusetts of indecent assault and battery on a child. Court records show that Noel moved to Maine in 2016.

But, after moving to Maine, Frank said, Noel failed to notify the appropriate authorities of his relocation and failed to register as a sex offender.

The investigation into the matter was conducted by the U.S. Marshals Service.

Noel was sentenced in U.S. District Court in Portland by Judge D. Brock Hornby.