My Fair Lady is not directly based on a myth. It is a musical adaptation of George Bernard Shaw's 1913 play Pygmalion. Shaw's play, in turn, draws on the Greek myth of Pygmalion, a sculptor who falls in love with his own statue, Galatea, which the goddess Aphrodite brings to life.
The musical retains the core premise of transformation and creation but adds songs and a more romantic tone. Eliza Doolittle becomes the living statue; Henry Higgins, the sculptor of speech. The myth's power — art so perfect it earns life — resonates through both play and musical.