The suspect forced his way into the woman's home near Metropolitan Avenue in Williamsburg shortly before 12:30 a.m. Sunday and climbed on top of her.
The victim woke up as the suspect was trying to rape her and fought back. They struggled, and the suspect darted out a window.
Surveillance video shows the man believed to be the suspect heading down the street, wheeling a bicycle, and looking behind him as if to see if he's being pursued.
Minor injuries were reported.
Anyone with information about the rape attempt is asked to call Crime Stoppers at 1-800-577-TIPS (8477).