The Maharal explores the paradigm of Yosef HaTzaddik as the prototype for Moshiach ben Yosef — one who descends into exile and degradation before rising to power, whose role is to initiate the redemption through practical and political means before the spiritual completion arrives.
ומפני שבארנו בחבור גבורות השם ענין גאולת מצרים, יש לחבר עם זה גאולה אחרונה. וחבור הזה יקרא בשמו נצח ישראל, והטעם מבואר למעלה בתחלה חבור גבורות ה' (סוף הקדמה שלישית), כי בחבור הזה יתבאר כי השם יתברך נתן לישראל הנצחיות, ואינם כלים חס ושלום בגלותם הקשה הכבד. גם כן יתבאר כי יש אל השם יתברך הנצח, שיהיה מנצח מלכות הרביעית שיש לה הממשלה, וכדכתיב (עובדיה א, כא) "ועלו מושיעים בהר ציון לשפוט את הר עשו והיתה לה' המלוכה אחד". אמן כן יהי רצון במהרה בימינו:
And because we have explained in the work Gevurot Hashem the matter of the redemption from Egypt, it is fitting to join with it the final redemption. And this work shall be called by its name, Netzach Yisrael (The Eternity of Israel), the reason for which was explained above at the beginning of the work Gevurot Hashem. For in this work, it will be explained that the Lord, may He be blessed, has given to Israel eternity, and they will not, Heaven forfend, perish in their difficult and heavy exile. It will also be explained that the Lord, may He be blessed, possesses Victory, in that He will vanquish the fourth kingdom which holds dominion, as it is written (Obadiah 1:21), “And saviors shall ascend Mount Zion to judge the mount of Esau, and the kingdom shall be the Lord’s.” Amen, so may it be His will, speedily in our days.