If you are the owner, you must show the following to the Firearms Control Unit (Intervención de Armas):
EU residency or in transit
Foreigner from outside of the EU
Completed form 790 (one per traveller).
Inquire at the country’s embassy or consulate in Spain about current local legislation on the possession, transportation and use of firearms.