During the Viking Age the area that includes modern Oslo was located in Viken, the northernmost province of Denmark. Control over the area shifted between Danish and Norwegian kings in the Middle Ages, and Denmark continued to claim the area until 1241.