genie (n.)
1650s, "tutelary spirit," from French génie, from Latin genius (see genius); used in French translation of "Arabian Nights" to render Arabic jinni, singular of jinn, which it accidentally resembled, and attested in English with this sense from 1748.