 The Emperor returns when the Golem is destroying the palace.Eventually, with the help of the townspeople, Matěj succeeds in stopping the Golem and removing the shem.Rudolf is reinstated, after Matěj convinces him to give the Golem to the people rather than use it for his own means.