In 1186, a letter from Pope Urban III states that the castle of ''Hafn'' (Copenhagen) and its surrounding lands, including the town of Hafn, were given to Absalon, Bishop of Roskilde 1158–1191 and Archbishop of Lund 1177–1201, by King Valdemar I. On Absalon's death, the property was to come into the ownership of the Bishopric of Roskilde. Around 1200, the Church of Our Lady was constructed on higher ground to the northeast of the town, which began to develop around it.