A Pegasus Airlines flight skidded off the runway of a Turkish coastal airport and plunged down a steep slope on the edge of the Black Sea, ending up only metres from the water's edge. None of the 168 people on board was hurt in the incident, but passengers spoke of panic as the aircraft tipped nose first towards the sea.

Just after the flight from Ankara landed at the Black Sea city of Trabzon there was a loud noise, Fatma Gordu was quoted as saying by the state-run Anadolu news agency.

"We tilted on the side and the front of the plane went down and the back went up," she said. "There was a huge panic, people were shouting."

 'We could have burned, we could have exploded or we could have gone into the sea.' - Yuksel Gordu, passenger on Pegasus Airlines

When the plane came to a halt in thick mud, passengers smelled fuel.

"We thought there would be fire," Gordu said. "People panicked — there were pregnant women, and children."

Video on social media showed fire crews pumping water over the plane on Saturday night. "It was a miracle," said another passenger, Yuksel Gordu. "We could have burned, we could have exploded or we could have gone into the sea."

Trabzon governor Yucel Yavuz said all passengers were safely taken off the plane and some had gone to hospital as a precaution.

"They were all OK," he told Anadolu.

Pegasus Airlines said in a statement that the Boeing 737-800 aircraft "had a runway excursion incident" as it landed, but the 162 passengers, two pilots and four cabin crew were unhurt.

Turkey Plane

A Boeing 737-800 of Turkey's Pegasus Airlines skidded off the runway downhill towards the sea at the airport in Trabzon, Turkey, on Sunday. All 162 passengers and all the crew on board survived. The cause of the accident was not yet known. (DHA-Depo Photos via AP)