He proposed that good mental health is the result of rational thinking, defined as thinking in ways that allow people to be happy and free from pain. To Ellis, conditions like depression result from irrational thoughts. Ellis defined irrational thoughts not as illogical or unrealistic but as any thoughts that interfere with us being happy and free from pain.