Complex sentence: Punishments are applied for various purposes, most generally, to encourage and enforce proper behavior as defined by society or family.
Split into simpler sentences: Punishments are applied for various purposes. Most generally, to encourage and enforce proper behavior as defined by society or family.