44 year old Romanian was overpowered by crew and passengers who held him until the plane reached his destination and he was handed over to police.
The scare happened on Monday morning.
Unnamed man was arrested and taken to hospital in Ibiza when the plane landed. Local reports say the man had psychological problems
Civil guard officers said they believed he was trying to commit suicide rather than deliberately trying to cause other passengers harm as part of a terrorist act.