early 15c., "in, of, or pertaining to the mind; characteristic of the intellect," from Late Latin mentalis "of the mind," from Latin mens (genitive mentis) "mind," from PIE root *men- (1) "to think."
In Middle English, also "of the soul, spiritual." From 1520s as "done or performed in the mind." Meaning "crazy, deranged" is by 1927, probably from combinations such as mental patient (1859); mental hospital (1891). Mental health is attested by 1803; mental illness by 1819; mental retardation by 1904.