In order to attack the emperor you must complete all quests, the pre-final quest is the capture of the emperor's daughters, after which the final quest will start.