Neil Cohen, former New Jersey Assemblyman, was indicted on four counts that include reproducing, possessing and distributing the illegal images.
A judge on Wednesday sentenced a former New Jersey lawmaker who championed legislation fighting child pornography to five years in custody for viewing nude images of underage girls.
Neil Cohen will serve the term either in prison or a mental hospital. He must also register as a sex offender under Megan's Law.
The 59-year-old could become eligible for release and be placed under intense supervision in several months.
Cohen did not speak during sentencing. But his lawyer told the judge the former assemblyman has been suicidal and has several mental health issues, including chronic depression.
Cohen pleaded guilty in April.