A man who allegedly jumped from the open window of a nine-story building in New Jersey has miraculously survived after he crashed through the roof of a BMW parked outside.

The incident happened in Jersey City on Wednesday morning. The 31-year-old man who refused to reveal his identity was taken to a hospital in an ambulance and was in critical condition, Jersey City spokeswoman Kimberly Wallace-Scalcione said Thursday. She described the incident as an attempted suicide, NJ 101.5 reported.

After plunging around 100 feet and crashing through the roof of a black Beemer 330i parked outside the building, the man reportedly stood up with his right arm dangling at his side and asked, "What happened?," Christina Smith, who witnessed the dramatic incident, told New York Post.

The woman said she heard a big boom while walking to a nearby McDonald's but never expected it would be a man. "The back window of the car just busted out — exploded. Then the guy jumped up and started screaming. His arm was all twisted," she told the outlet.

Smith immediately called 911 to report the incident. In a video that surfaced online, the man could be seen screaming in pain with upper-body injuries. However, Smith believes the fluffy coat the man was wearing could have shielded him from deeper injuries.

Reports said the man did not work at the building and it was not clear how he got in there.

"Leave me alone, I want to die," the man reportedly said after the fall.

"He fell into the car through the sunroof, then climbed out of the car and fell on the ground. He was trying to get up but people were trying to get him to stay down," Mark Bordeaux, who works in the building, said. "He wanted to die. That was his agenda. But God had something else in mind."

The incident does not involve suspicious circumstances, Wallace-Scalcione said, adding that police are investigating the incident.

If you have thoughts of suicide, confidential help is available for free at the National Suicide Prevention Lifeline. Call 1-800-273-8255. The line is available 24 hours, every day.