Moses and Elijah were present at the Transfiguration because they were prophets who foretold of Jesus' coming. They also represent the law and the prophets, which are two of the most important aspects of Jewish tradition.