A homeless man was arrested over the weekend for sexually assaulting subway riders as they slept, cops said.

Michael Baskerville, 28, even went so far as to perform oral sex on one person, according to police.

Authorities caught the perv at the Wakefield-241st Street train station early Saturday not long after he allegedly groped a 19-year-old that he was sitting next to at the terminus.

It was the second person he targeted that morning, cops said.

The first was also 19-years-old — and like him, was sleeping when Baskerville allegedly set upon him. Only this time, cops said the deviant chose to perform oral sex on the young man before being chased away by him.

The victim called police a short time later and officers eventually stumbled upon Baskerville during a search of the train station, officials said.

When authorities found him, he was allegedly groping the second young man though his pants.

Cops confronted Baskerville and the victim and discovered that he had been robbed of his wallet and phone. They arrested Baskerville and charged him with criminal sex act, sex abuse, grand larceny, criminal possession of stolen property, forcible touching and possession of a controlled substance.

It is unclear if he has any priors.