A chastity belt is a locking item of clothing designed to prevent sexual intercourse or masturbation. Such belts were historically designed for women, ostensibly for the purpose of chastity, to protect women from rape or to dissuade women and their potential sexual partners from sexual temptation. Modern versions of the chastity belt are predominantly, but not exclusively, used in the BDSM community, and chastity belts are now designed for male wearers in addition to female wearers.