Saudi police have released a 14-year-old boy who was arrested after footage emerged of him dancing the Macarena in the street at a busy intersection.

The footage was filmed some time ago but went viral this week, prompting police in the conservative kingdom to detain the teenager.

The interior ministry said the teen was released without charge after he and his guardian were questioned about his "improper public behaviour" by officers.

"They signed a written pledge that the teen will not engage in behavior that could endanger his life and the life of others again," the ministry said.

"The notification was solely intended to warn the boy about potential consequences for his own safety, as well as to safeguard the overall safety of motorists and pedestrians."