Thus for two years his adventurous career went on. Then came an event that turned the tide in his favor. Erling was still pursuing him and in June, 1179, was in the coast town of Nidaros, his son, Magnus, with him. In the harbor lay the fleet. The earl and the king were feasting with their followers when word was brought them that the Birchlegs were approaching.

"I wish it was true," said the earl. "I should like nothing better than to meet that hound Sverre. But there will be no such good luck to-night, for I am told that the rascals have gone back to the mountains. You can go to bed in safety, for Sverre will not dare to trouble us when we are on the watch for him."

To bed they went, sleeping heavily from their potations, and down on them came Sverre, who, as usual, was well informed about their situation.

"Now is your time to fight bravely, and repay yourselves for your sufferings," he said to his men. "A fine victory lies before us. I shall promise you this. Any one of you who can prove that he has slain a liegeman shall be made a liegeman himself, and each of you shall be given the title and dignity of the man you have slain."

Thus encouraged, the poorly-armed adventurers rushed down the hills into the town. One sturdy fellow who carried only a club was asked where his weapons were.

"They are down in the town," he said. "The earl's men have them now. We are going there to get them."

This they did. As they came on the warriors, hastily alarmed and heavy with their drunken sleep, flocked staggering into the streets, to be met with sword and lance. The confusion was great and the king had much trouble in rallying his men. Many chieftains advised flight to the ships, but the stout-hearted Erling was not ready for that.

"It might be best," he said, "but I can't bear the thought of that brigand priest putting himself in my son's place."

Leading his men outside the city, he awaited the attack. It came in haste, the Birchlegs falling furiously upon the much greater force before them. In the onset the earl was killed and his men were put to flight. The king, as he fled by, saw the bloody face of his father lying under the stars. He stooped and kissed him, saying:

"We shall meet again, father, in the day of joy." Then he was borne away in the stream of flight.