Phrase tie the knot originate from?

This actually goes back to medieval and Pagan rituals of marriage or traditions in some cultures where the brind and groom have a cord tied around their wrists during the ceremony to show that they are bound together for life from that point forward.