An airplane wound up in a perilous position after skidding off the runway into the mud after landing in the Turkish province of Trabzon early on Sunday.

The province's governor said all 162 passengers and crew on board were evacuated and safe.

Pictures showed the Boeing 737 on a muddy slope just a few yards from the water.

State-run Anadolu news agency said there was panic on board as the plane went out of control before finally getting stuck in the mud, according to the BBC.

The cause of the accident was not yet known and the airport was closed for several hours while authorities investigated.

The Associated Press contributed to this report