First Pharaoh attacks Israel. Then the Amalekites attack, an attack from a fraternal enemy, a descendant of Esau (Genesis 36). Finally, Moses gets attacked by various rebels within Israel. Israel gets attacked by the Gentiles, by the brother Amalekites, by nearer brothers within Israel. And Moses has to lead Israel from all three forms of bondage.
These, of course, are identical to the three courts that try Jesus: Pilate the Roman, Herod the Idumean/Edomite, and the Jewish Sanhedrin.