Passage: The term "magic" etymologically derives from the Greek word mageia (μαγεία). In ancient times, Greeks and Persians had been at war for centuries, and the Persian priests, called magosh in Persian, came to be known as magoi in Greek. Ritual acts of Persian priests came to be known as mageia, and then magika—which eventually came to mean any foreign, unorthodox, or illegitimate ritual practice. During the 17th century, many books were published that described magic tricks. Until the 18th century, magic shows were a common source of entertainment at fairs. A founding figure of modern entertainment magic was Jean Eugène Robert-Houdin, who had a magic theatre in Paris in 1845. John Henry Anderson was pioneering the same transition in London in the 1840s. Towards the end of the 19th century, large magic shows permanently staged at big theatre venues became the norm. As a form of entertainment, magic easily moved from theatrical venues to television magic specials.

Question: What is the etymological origin of magic?
the Greek word mageia