The flight landed safely at Edinburgh Airport at 2.15pm this afternoon.
A spokeswoman for Jet2 said: “Flight LS858 from Malaga to Edinburgh declared an emergency due to a customer requiring medical attention.
"The flight crew followed standard procedure and the flight landed safely into Edinburgh as planned."