The definition of an anagram is made by taking a word or several words and mixing up the letters so that another word or words are made.(noun)
Making “astronomer” into “moon starer” is an example of an anagram.
See anagram in Webster's New World College Dictionary
Origin: Fr anagramme < Gr ana-, back + gramma, letter (see gram), modeled on Gr anagrammatizein, to write the letters of a name backwards
See anagram in American Heritage Dictionary 4
Origin: New Latin anagramma
Origin: , from Greek anagrammatismos
Origin: , from anagrammatizein, to rearrange letters in a word
Origin: : ana-, from bottom to top; see ana-
Origin: + gramma, grammat-, letter; see gerbh- in Indo-European roots.
Learn more about anagram