Exodus 12 gives us a picture of what Jesus did for us in His death, burial and resurrection.

In the Old Testament, Egypt is a type of sin or bondage [where we lived before we were born again].

Pharaoh is a type of Satan.
Israel is a type of the Church
Moses is a type of Jesus