 The "Alsterburg" was built by Duke Bernard II of Saxony in 1045 and the new castle built in 1050.After further raids by the Obodrites in 1066 the bishop Adalbert permanently moved to Bremen.In 1188 Hamburg adopted the Lübeck law "(Lübsches Recht)", a code of rights superseded in some areas in 1900 by the civil code of Germany "(Bürgerliches Gesetzbuch)", although it is disputed if the law in Hamburg originated from an own law.