"the Pygmalion myth"
Pygmalion and Galatea, by Girodet
Public DomainPygmalion and Galatea, by Girodet

Pygmalion was a mythical ancient Greek sculptor who fell in love with a statue he had carved of a beautiful woman.  He beseeched Aphrodite to make his statue into a living woman and, when she granted his request, he married the woman.

The story was updated to Edwardian London, first by George Bernard Shaw and then, as My Fair Lady, by Lerner and Loewe.