A Lufthansa aircraft flying from Munich to São Paulo made an emergency diversion to Madrid on Sunday, December 6, after the crew declared an emergency mid-flight.

The Airbus A350-900, operating as flight LH504, was travelling to Brazil when the crew issued the alert, Flightradar24 reported.

The aircraft departed Munich and flew over Switzerland and southern France before crossing into Spain. It then changed course near Madrid and landed in the Spanish capital instead of continuing across the Atlantic.

According to Aviation Hub, the flight normally takes around 12 hours and covers approximately 6,100 miles. The diversion took place just a few hours after departure.

The cause of the emergency remains unknown. Neither Lufthansa nor the relevant authorities have released an official explanation, and no injuries have been reported.

An emergency declaration does not necessarily indicate an immediate threat to the aircraft. It can also be made as a precaution in response to a technical alert, a medical incident involving a passenger or crew member, or another onboard issue.

Such a declaration gives the aircraft priority in air traffic control and allows emergency teams to be ready when it lands.