Police have caught the man suspected of trying to rape a Brooklyn woman as she slept in her apartment, cops said Saturday.

Akijah Hall, 24, allegedly crept up to the slumbering 25-year-old woman in her Williamsburg apartment near the corner of Grand Street and Union Avenue around 4:30 a.m. Friday, grabbing her mouth and pinning her down, officials said.

The would-be rapist was foiled when the woman started screaming, police said.

He was arrested later that day and charged with attempted rape, burglary, sexual abuse and forcible touching, authorities said.

He had been busted in August in East New York for patronizing a prostitute, cops said.

Hall, who was arrested at the Special Victims Unit, was awaiting arraignment in Kings County Criminal Court Saturday.