A Queens boy is in critical condition Wednesday after police say he set himself on fire all because of a “fire challenge” he saw on YouTube.

On May 24 at around 10 p.m. the unidentified 12-year-old boy went into a bathroom inside his Far Rockaway home and poured rubbing alcohol on his body, according to authorities.

RELATED: Overnight Boston playground fire was arson: Police

The boy — who was not alone at home — then set himself on fire, police said. When he realized that he could not put out the blaze, the boy ran out of his home and onto the street where a neighbor helped extinguish the fire.

The child was taken to Nassau University Medical Center with third-degree burns over more than 40 percent of his body, according to the New York Post.

According to police, initial reports show that the boy had decided to set himself on fire after watching a YouTube video where others did the same act as part of a “fire challenge.”

The investigation for this incident is still ongoing.

It was not clear which video in particular the young boy was imitating, but according to the Daily Mail this social media craze began in 2014.

RELATED: Queens men sentenced to state prison after forcing runaway teen into prostitution: DA

As part of the challenge, primarily teens pour either nail polisher remover, hand sanitizer or rubbing alcohol on their bodies, set themselves on fire and then try to quickly extinguish the flames.

Since it started the challenge has left various teens badly injured and in one case a 15-year-old boy from Buffalo, New York, died while attempting the feat.

An 11-year-old boy in England had to undergo emergency skin graft surgery as a result of the burns he received after setting himself on fire, the Daily Mail reported.

Warning: graphic video below of various fire challenges