Dendi was the one who cut the Gordian Knot; as a sign of good faith (and because he was the one to tie it in the first place) he gave Alexander the Great the kingship.