A gas generator has a combustion chamber containing a pyrotechnic propellant charge and a biasing unit biasing the propellant charge. A holding device is provided, which holds the biasing unit in a predetermined, fixed, compressed position and which is designed to be releasable, so as to selectively release the biasing unit, so that it arrives at a release position in which it exerts a biasing force on the propellant charge.