Social control is the mechanism through which society prevents people from engaging in deviant behavior.