Valdemar II of Denmark
In 1204, King Valdemar II of Denmark came to Norway accompanied by the Bagler army. Erling Steinvegg was declared to be king and Philip Simonsson to be earl. This action marked the start of the second Bagler war. The Bagler rapidly gained control of the Oslofjord-area ("Viken"), while the Birkebeiner held control of the Trøndelag-region around Nidaros (Trondheim). Western Norway with the city of Bergen changed hands several times.