Greek mythology.

An intricate knot tied in a rope by King Gordius of Phrygia. According to prophecy, whoever could untie the knot would rule Asia. No one could do it until Alexander the Great cut the knot with his sword.

The phrase "cutting the Gordian knot" means solving a problem in an unorthodox manner.