A gag is usually an item or device designed to prevent speech, often as a restraint device to stop the subject from calling for help and keep its wearer quiet. This is usually done by blocking the mouth, partially or completely, or attempting to prevent the tongue, lips, or jaw from moving in the normal patterns of speech. The more "effective" a gag appears to be, the more hazardous it is: for example, duct tape is fairly effective at keeping one's mouth shut but is hazardous if for some reason (e.g., the common cold) the subject cannot breathe freely through the nose. For this reason, a gagged person should never be left alone.
The use of gags is commonly depicted in soap operas and crime fiction, particularly in comics and novels. It is also often used in movies, such as Raiders of the Lost Ark and its sequel Indiana Jones and the Kingdom of the Crystal Skull.
Very rarely, courts have been known to gag unruly defendants. Bobby Seale is one example.
During the filming of Rope, a camera operator's foot was broken by a heavy dolly during one intensive take, and to stop his vocal noises from being recorded on the film he was gagged and hauled out of the studio so that filming could continue without interruption.
Occasionally a cloth over-the-mouth gag is used not to prevent speech but to keep dust and aerosols out of the lungs.
One type of gag familiar in fiction, particularly in crime comics and novels, is a suitably sized piece of cloth pulled over the subject's mouth and tied at the back of his/her head. It is sometimes called the "detective gag" because many of its first appearances were in crime serials.