Mashiach Ben Yossef
Jewish tradition speaks of two redeemers, each one called Mashiach. Both are involved in ushering in the Messianic era. They are Mashiach ben David and Mashiach ben Yossef.1
The term Mashiach unqualified always refers to Mashiach ben David (Mashiach the descendant of David) of the tribe of Judah. He is the actual (final) redeemer who shall rule in the Messianic age. All that was said in our text relates to him.
Mashiach ben Yossef (Mashiach the descendant of Joseph) of the tribe of Ephraim (son of Joseph), is also referred to as Mashiach ben Ephrayim , Mashiach the descendant of Ephraim.2 He will come first, before the final redeemer, and later will serve as his viceroy.3