The phrase "code of right and wrong" refers to a set of moral principles that guide an individual's behavior. Synonyms for this phrase include "moral code", "ethical code", "code of conduct", and "value system". A moral code is a set of unwritten and written rules that dictate how people ought to behave. Such codes are created to help society function in a peaceful, orderly way. They define what is right and wrong behavior, and generally are rooted in the fundamental values of a society. Cultures differ greatly in their moral codes, but most include concepts like honesty, respect, and responsibility. Encouraging individuals to adhere to a moral code is essential for ensuring a just and stable society.