The megahaul was discovered inside a shipping container that was docked in the southern port of Algeciras, reports ABC.

"Among the thousands of fresh pineapples inside the 12 containers, they found fruit hollowed out and stuffed with drugs and then covered with a yellow wax that simulated the color of pineapple pulp," an Interior Ministry statement said.

The ship arrived from Central America, the statement said.

The pineapples were addressed to one company in Madrid and another in Sant Quirze del Valles, near Barcelona.