Your objective is to defend the towns and kill Agrimor. If any of the towns fall you will lose the game.