This question already has an answer here:
I've always thought that the Mashiach is one. But I recently heard from a friend that there is Mashiach ben David and Mashiach Ben Yoseph. And that one will bring the jews from the diaspora and the other will reconstruct the Temple or something like that. I don't know the sources of this and I've never heard anything like this, but is this true in some way?