Temptations are produced from the unconscious, which has many parts beginning with chitta. They manifest as sudden ideas, which are then liked or disliked, which then become our decisions based on moral notions. However, many times these likes overwhelm morality, which is when we call them ‘temptations’. Sigmund Freud identified an ongoing tussle between the Id which is the repository of desires and the Super-Ego which tempers these desires. the Ego is supposed to mediate between these three things by finding a path in which the desire can be fulfilled without violating the moral injunctions. A temptation wins when the Id dominates over the Super-Ego, the Ego tries its level best to find a path to satisfy the desire without being immoral, but the Ego may lose out to the Id and commit some immoral actions. It’s a three-way dynamic in which one of the trees can dominate and the other two become subordinate.