Illegal Firearm Possession: Art. 564 Criminal Code & Defence (2026)
Last updated:
listIn this article
lightbulbKey Takeaways
- check_circleArt. 564 CP: handguns 1-2 years; long guns 6 months-1 year
- check_circleAggravated (erased serial no., illegal, modified): up to 2-3 years
- check_circleDistinct from stockpiling weapons (Art. 567/566 CP)
- check_circleDefence: ballistics report on fitness to fire and Art. 565
Quick answer
Article 564 of the Spanish Criminal Code (CP) punishes holding a regulated firearm without the necessary licences or permits: one to two years' imprisonment for handguns and six months to one year for long guns. The penalty rises to two-three years (handguns) and one-two years (long guns) where the serial number has been erased or altered, the weapon was brought into the country illegally, or it has been modified. It must not be confused with stockpiling weapons or with a mere administrative offence.
Article 564 of the Spanish Criminal Code (CP) criminalises the illegal possession of regulated firearms: holding a pistol, revolver, shotgun or rifle without the required licences or permits. It is one of the offences against public safety that most often arises from everyday situations gone wrong — inherited weapons, licences that were not renewed, or modified guns. As criminal defence lawyers specialising in illegal firearm possession, we explain what the provision punishes, its aggravating factors, how it differs from other offences, and the available lines of defence.
What Art. 564 CP Punishes
Art. 564.1 punishes holding regulated firearms without the necessary licences or permits. The protected interest is public safety: what is reproached is not a specific harm but the risk created by having a weapon outside administrative control. It is therefore an offence of mere possession that does not require the weapon to have been used. The penalty varies by type of weapon:
- Handguns (pistol, revolver): one to two years in prison.
- Long guns (shotgun, rifle): six months to one year in prison.
The provision requires the weapon to be regulated (one that may be held with the corresponding licence) and fit to fire. These two requirements are, as we shall see, a common battleground for the defence.
Aggravating Factors: Erased Serial Number and Others
Art. 564.2 raises the penalty to two-three years (handguns) and one-two years (long guns) where one of these three circumstances applies:
- 1st. The weapon lacks factory marks or a serial number, or has them altered or erased.
- 2nd. It was brought into Spanish territory illegally.
- 3rd. It has been modified, altering its original characteristics.
The first — an altered or erased serial number — is the most common, because it hinders the weapon's traceability. The third covers, for example, blank-firing or starter pistols modified to fire live ammunition, which cease to be mere replicas and are then treated as firearms.
Reduction for lack of unlawful intent (Art. 565 CP)
Art. 565 CP allows the court to reduce the penalty by one degree where, given the circumstances of the act and of the offender, a lack of intent to use the weapon for unlawful purposes is shown. This is a key route with inherited or collector's weapons, or a deceased relative's gun that was never regularised in time.
Difference from Stockpiling Weapons (Art. 567 CP)
Illegal possession under Art. 564 concerns one or a few weapons. When the quantity grows, stockpiling comes into play. Art. 567.3 CP defines a stockpile of regulated firearms as the manufacture, trading or gathering of five or more such weapons, even in disassembled parts. The conduct is then punished under Art. 566.1.2 CP, with two to four years' imprisonment for promoters and organisers and six months to two years for those who cooperated in its formation. It is therefore a separate and more serious offence than mere possession. You can read more on our illegal weapons possession page.
Criminal Offence versus Administrative Penalty
Not every irregularity with a weapon is a crime. The Organic Law on the Protection of Public Safety penalises as an administrative offence conduct such as carrying a weapon without its paperwork where it does not reach the criminal threshold, or certain breaches of the Weapons Regulation. The line is not always clear-cut and usually turns on the weapon's fitness to fire, on whether authorisation exists, and on the real risk created. Separating the criminal sphere from the administrative one is often the defence's first objective, because it avoids criminal liability and a criminal record.
Defence Strategies
Charges under Art. 564 usually arise from everyday situations: licences that lapsed or were not renewed in time, weapons inherited from a deceased relative that nobody regularised, items found during a home search for an unrelated case, or modified blank-firing guns bought without any awareness of their unlawfulness. In all of these the criminal response is not automatic, and a defence against a charge under Art. 564 is built on several lines, to be assessed case by case:
- Expert report on fitness to fire: the offence requires a weapon capable of firing. If a ballistics report establishes that the weapon is deactivated, damaged or non-functional, the offence falls away.
- Title and actual availability: having access to a weapon is not the same as possessing it in the criminal sense. The defence may deny actual availability over the weapon or its attribution to someone who did not control it.
- Mistake: a mistake as to the weapon's administrative status (believing in good faith that the paperwork was in order, or being unaware that a licence was needed for an inherited weapon) can exclude or mitigate intent.
- Lack of unlawful intent (Art. 565): even where possession exists, showing there was no intent to use the weapon unlawfully opens the one-degree reduction in penalty.
- Early regularisation: putting the paperwork in order, surrendering the weapon or starting the administrative formalities as soon as possible improves the procedural position.
⚖️ Need a criminal defence lawyer?
If you are facing a charge of illegal firearm possession, our firm can help. A firm dedicated exclusively to criminal law.
Frequently asked questions
What is the penalty for illegally possessing a firearm in Spain?expand_more
It depends on the type of weapon. Art. 564.1 CP punishes holding a regulated firearm without a licence with one to two years' imprisonment for a handgun (pistol or revolver) and six months to one year for a long gun (shotgun or rifle). If an aggravating factor of Art. 564.2 applies, the penalty rises to two-three years for handguns and one-two years for long guns.
What aggravating factors does Article 564.2 CP set out?expand_more
Three: that the weapon lacks factory marks or a serial number, or has them altered or erased; that it was brought into Spanish territory illegally; or that it has been modified, altering its original characteristics. Any of them raises the base penalty of Art. 564.1.
Is an expired licence already a crime?expand_more
Not automatically. Art. 564 requires lacking the necessary licences or permits. A licence that has merely lapsed and is renewable, with no real risk, tends to fall within the field of an administrative offence or a mitigated form, whereas the complete absence of authorisation fits the criminal offence. Each case turns on its specific circumstances.
What is the difference between illegal possession and stockpiling weapons?expand_more
Illegal possession (Art. 564) concerns one or a few unlicensed weapons. A stockpile of regulated firearms (Art. 567.3 CP) exists once five or more such weapons are gathered, manufactured or traded, and it is punished through Art. 566 CP, with heavier penalties. It is a separate, more serious offence.
Can the penalty under Art. 564 CP be reduced?expand_more
Yes. Art. 565 CP allows judges and courts to lower the penalty by one degree where, given the circumstances of the act and of the offender, a lack of intent to use the weapon for unlawful purposes is shown. This is a common route, for example, with inherited or collector's weapons that were never regularised.
gavelDo you need criminal defense in this area?
We are criminal defense lawyers specializing in unlicensed firearms. We act urgently to protect your rights.