The generation of Moshiach is a reincarnation of the generation that was redeemed from Egypt, according to the Arizal. That generation merited the first redemption through Moshe, and our generation too will merit the ultimate Redemption through Moshiach.
(Likkutei Sichos vol. 22, pg. 175)