Copenhagen Castle (Danish: Københavns Slot) was a castle on Slotsholmen in Copenhagen, Denmark. It was built in the late 14th century at the site of the current Christiansborg Palace In 1167, Bishop Absalon (c. 1128-1201) founded a fortress on the islet of Slotsholmen in the harbor of Copenhagen. It consisted of a courtyard with several buildings and surrounded by a wall for protection. During the years after the demolition of Bishop Absalon's Castle by the Hansa League in 1369, the ruins on the island were covered with earthworks, on which the new stronghold, Copenhagen Castle, was built. In 1343 King Valdemar Atterdag took over Absalon's castle, but upon his death in 1375 the right to the property returned to the Diocese of Roskilde The castle had a curtain wall and was surrounded by a moat which had an inner diameter of about 50 meters and with a large, solid tower as an entrance gate. The castle was still the property of the Bishop of Roskilde until King Eric of Pomerania usurped the rights to the castle in 1417. The Hanseatic League attacked the castle and in the Bombardment of Copenhagen during the Dano-Hanseatic War (1426-1435). The attack was fought back by in 1428 by Queen Philippa, who led the defense from Copenhagen Castle