The Tower of Hanoi (also referred to as the Tower of Brahma) was invented by the French mathematician Edouard Lucas in 1883. He was inspired by a legend that tells of a Hindu temple where the pyramid puzzle was used for the mental discipline of young priests.