A pilot onboard an Air Europa airplane accidentally set off an alarm, prompting a major security lockdown at Amsterdam's Schiphol airport.

In a statement the airline said passengers were fine and were waiting for take-off.

"In a plane from Amsterdam to Madrid tonight an alarm was accidentally activated which set off safety protocols at the airport," it said.

"There was no cause for alarm, all passengers were fine and waiting for the flight to take off."

"We are sorry, there was no cause for alarm," the Spanish airline said.

Dutch television station NOS said the plane was carrying 27 passengers.

An earlier tweet from the airport said Dutch military police were investigating a "suspect situation" on board an airplane.

Part of the airport had been closed while the incident was dealt with, it has now reopened.