Punishment (also known as discipline or penalty) is the authoritative imposition of something undesirable or unpleasant on, or the removal of something desirable or pleasant from, a person, animal, organization or entity in response to behavior deemed unacceptable by an individual, group or other entity. The authority may be either a group or a single person, and punishment may be carried out formally under a system of law or informally in other kinds of social settings such as within a family.