Abstract: The invention relates to an automatic safety and retention device for a gun holster, preferably for a handgun. The inventive device comprises a cover (5) which connects the outer side (2) and the inner side (3) of the holster body at the top thereof and which pivots forward from a closed position to an open position under the action of at least one part of the hand of the carrier when the gun is being removed from the holster or spontaneously by the gun when it is being placed in the holster.