Flaming Atlas Air Boeing cargo plane lights up the sky before making emergency landing in Miami

Flames ​shot out ​the side of a cargo ​plane as it flew over Miami late ​Thursday, forcing it to make an emergency landing.

Terrifying footage posted to social media showed fire burning in the Atlas Air Jet’s left wing as it made its way across the night sky​, leaving ​a trail of smoke ​and flames in its wake.

The plane — which took off from Miami International Airport at 10:32 p.m. — ​made an emergency landing back at the hub at 10:46 p.m., according to data from flight tracker FlightAware.

Atlas Air said the jet returned safely to the airport and ​that no crew members were injured in the blaze.

American Airlines plane carrying 53 passengers slips off ‘snowy’ NY runway after landing an hour behind schedule