A retired New York City high school teacher from Bellmore was sentenced to five years in prison Wednesday for possessing a large cache of child pornography, officials said.

Alfonso Marino, 65, apologized for his actions before he was sentenced by U.S. District Judge Leonard Wexler in federal court in Central Islip.

Eastern District federal prosecutor Allen Bode said agents found 10,000 video files and 200,000 photo files on Marino's computer, separate hard drives and discs when he was arrested at his home in September 2012.

Marino said he had been collecting child pornography for 10 years, according to court papers. He had faced up to 10 years in prison.

After the sentencing, Marino's attorney, Raymond Baierlein, said he had hoped for a "more lenient sentence," because his client hadn't physically harmed any children.

Bode declined to comment.

Marino said he retired in 2011 from teaching night school at Flushing High School in Queens. Federal officials at the time of Marino's arrest said he had also drove a school bus from 2005 to 2010.

Undercover federal agents discovered that one of Marino's home computers was being used to share child pornography on the Internet, court papers said. When the agents went to Marino's home, he admitted searching for pornography involving children as young as 7.

Marino told agents "he had not touched anyone," according to court papers.

advertisement | advertise on newsday

The agents also found a loaded .38-caliber handgun and a loaded .22-caliber semiautomatic, court papers said. Marino's Nassau County pistol permit expired in 2002.

The county weapons charges are pending, officials said.