There's been a mid-air emergency in Jandakot.

7NEWS is reporting an instructor had a medical emergency during a lesson.. and a student has had to be coached down by air traffic control.

A short time ago the student managed to land the plane safely.

The instructor is now being treated by paramedics.

Sources said the plane was a Cessna 152 and the instructor was believed to have had a seizure.

They said the student did “a superb job”.

The air traffic control tower was in contact with the trainee pilot as he made the landing, giving him step by step instructions on how to bring the plane down safely.

The pilot made several passes with the tower telling him "you've got this mate" as he safely landed.