Authorities say 29-year-old Donnelle Murphy was taken into custody Sunday.
Murphy allegedly forced his way into the 21-year-old victim's apartment in Kips Bay last Monday after finding her wallet at a near by McDonald's restaurant.
He tried to rape her before she fought him off, according to investigators.
Murphy is charged with attempted rape, burglary, grand larceny, menacing and assault.
The victim was treated at Bellevue Hospital and released.