What is the link between the exodus and the ten commandments?

The Exodus was the preface to the receiving of the Ten Commandments from God.