Conscience is formed through association and punishment. When an action is associated with disapproval and punishment, a moral sentiment develops towards that action. For example, when a treasurer steals and is punished through sanctions and having to compensate losses, he learns that stealing is wrong. More broadly, societies use punishment to teach moral rules from an early age through families, schools, and legal systems. Through experiencing punishment for wrong actions, individuals develop conscience over time.