La Aduana is Spain's customs authority, under the Ministry of Finance. Core duties:
Collect import duties/taxes
Enforce customs law
Control cross-border goods movement
Issue import/export licenses
Investigate/prosecute customs fraud
Headquartered in Madrid with offices at all major ports/airports; ~10,000 staff. It secures billions in annual revenue and protects the economy from illicit trade.