Abstract: A gun lock, for blocking the trigger of a gun, comprising a first and second armored part. The armored parts are locked to each other covering the trigger and is connected to a power source and contains switching means for switching between a locked and an unlocked state. Furthermore a biometric sensor and a processor are positioned inside one of the armored parts for processing the data from the biometric sensor and allowing unlocking if the data match data from allowed users. The locking beam and the at least one support beam is configured to be positioned on either side of the trigger inside the trigger guard when in a locked state. The two armored parts covers at least the trigger and trigger guard.