Something that discourages or prevents a particular action through fear of consequences; a thing that makes someone less likely to do something.
From Latin 'deterrere,' meaning 'to frighten away,' combining 'de-' (away) and 'terrere' (to frighten). The word developed from the concept of frightening someone away from an action, entering English in the 19th century.
Try Another Word