By playing the games and watching most of the cutscenes, you will notice how he comes back. At the end of OoT, when Ganondof is swirling around, being sent to the evil realm, he says that he will return looking for Link and Zelda's ancestors, "as long as the Triforce of Power is in his hand"...