Here is one of the possibilities from antiquity - from our friends at Wikipedia
The Phrygians were without a king, but an oracle at Telmissus (the ancient capital of Lycia) decreed that the next man to enter the city driving an ox-cart should become their king. A peasant farmer named Gordias drove into town on an ox-cart and was immediately declared king.[a] Out of gratitude, his son Midas dedicated the ox-cart[1] to the Phrygian god Sabazios (whom the Greeks identified with Zeus) and tied it to a post with an intricate knot of cornel bark (Cornus mas). The knot was later described by Roman historian Quintus Curtius Rufus as comprising "several knots all so tightly entangled that it was impossible to see how they were fastened".[2]
The ox-cart still stood in the palace of the former kings of Phrygia at Gordium in the fourth century BC when Alexander the Great arrived, at which point Phrygia had been reduced to a satrapy, or province, of the Persian Empire. An oracle had declared that any man who could unravel its elaborate knots was destined to become ruler of all of Asia.[2] Alexander the Great wanted to untie the knot but struggled to do so. He then reasoned that it would make no difference how the knot was loosed, so he drew his sword and sliced it in half with a single stroke.[2] In an alternative version of the story, Alexander the Great loosed the knot by pulling the linchpin from the yoke.[2]