The tenth plague was the death of the firstborn of Egypt, which was also the salvation of the people of Israel.
God has always been with his people, in various ways and temporarily in Old Testament times and later and permanently in human flesh.
The people could draw near to God only after the blood of the covenant was shed.