ISTANBUL (Reuters) - 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 meters 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 of went up,” she said. “There was a huge panic, people were shouting.”

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

Slideshow ( 3 images )

“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.