Video from onboard a Southwest Airlines flight shows flames bursting near the engine of a Boeing 737 shortly after take-off, on a flight from Houston to Cancun on Tuesday.

The plane made an emergency landing and safely returned to the airport in Houston.

In a statement, Southwest Airlines said the plane had a “mechanical issue shortly after take-off” and has been grounded.

The Federal Aviation Administration is now investigating the incident.