United Airlines’ Boeing 777 bound for Honolulu caught fire just shortly after departing from Denver, Colorado, the company said on Twitter Saturday.

The plane had to make an emergency landing, but luckily, all passengers are safe.

The video of the in-flight fire was shared on social media showing the exterior of one of the engines starting to catch on fire. The terrifying moment was reportedly captured by one of the passengers on board.

​Another video shows the aircraft landing at the Denver International Airport and passengers clapping, apparently, with relief.

Broomfield police said that the plane dropped debris in several neighborhoods in the city as it was experiencing engine trouble. The authorities warned citizens against touching or moving the debris, as the NTSB will be conducting an investigation.

​The FAA issued a statement on the accident: “A Boeing 777-200 operated by United Airlines returned to Denver International Airport and landed safety Saturday after experiencing a right-engine failure shortly after takeoff.”

Air traffic radio captured the moment the United pilot called mayday due to the engine failure.

Other videos were also shared online by shocked witnesses.