An 18-year-old man from El Salvador, who is believed to be a member of MS-13, raped an 11-year-old girl as her brother slept in the bottom bunk underneath her before fleeing out the window when she screamed for her parents, police say.

Julio Ayala was charged with sexually motivated burglary and first-degree rape, which took place around 11.30pm Wednesday in Prospect-Lefferts Gardens, during an appearance at Brooklyn Criminal Court on Sunday.

His arraignment heard Ayala, who works at his uncle’s air conditioning business, broke in by removing the AC unit in the children’s room.

The man from El Savador is suspected of having a fake Green Card, according to a police complaint.

An 18-year-old man, thought to be a New York gang member, was captured on surveillance video after raping an 11-year-old girl as her brother slept on Wednesday

The Brooklyn man was caught changing into a sweater after committing the crime

He then moved things around on the child’s dresser, placed his Chicago Bulls cap down, and flicked the light switch on and off before attacking her according to New York Daily News.

It is believed Ayala is a member of the MS-13 gang in the city.

The complaint states that he licked the child’s stomach before raping her, as he sibling slept on the bottom level of the bunk bed.

Although he admits being at the scene, his Legal Aid lawyer, Anna Boksenbaum, said: ‘I question his ability to fully comprehend what was happening. There might have been confusion about what was happening.’

Ayala with his aunt, uncle and two cousins in Brooklyn and used a Spanish language translator in court.

His only form of identification is a US Green Card, however a New York Post report states that the document, as well as a Social Security card, may have been forged.

Law enforcement caught him Saturday afternoon and crowds cheered at his arrest

El Salvador immigrant Julio Ayala was charged with sexually motivated burglary and first-degree rape and police suspect his Green Card and Social Security identification are fake

Ayala reportedly told police he'd 'never done anything like this' according to Assistant district attorney, Victoria Nunez

Boksenbaum, called his arrest a case of mistaken identity, reports New York Daily News.

Contrary, surveillance footage shows the man put on a sweatshirt, seemingly to disguise himself as he walked from the Parkside and Flatbush crossing to where Ocean and Church avenues meet.

The man was caught in a 30-man police chase at 2.35pm Saturday, when law enforcement tracked him down and cornered him on a three-story Flatbush Avenue construction site near Caton Ave.

New York Post reports crowds cheered when he was detained in the middle of the afternoon.

A video from CBS News shows the moment he was taken into custody.

At his arraignment, Assistant district attorney, Victoria Nunez, said the teenager told law enforcement: ‘I have never done anything like this before.’

Neighbors were sickened to hear about the crime.

‘That makes me feel unsafe in my own home,’ a 42-year-old local mental health counselor, Elizabeth Bardourilla told Post. ‘That child can’t help herself. For a grown man to do that. Sick. Very sick. This is sad. Just sad.’