Cosmas of Prague
The area was likely under the rule of Great Moravia under King Svatopluk I by the late 9th century, though the precise extent of his realm is disputed. According to the "Chronica Boëmorum" from 1191 by Cosmas of Prague, the castle of Kłodzko on the road from Prague to Wrocław in 981 was a possession of the Bohemian nobleman Slavník, the father of Saint Adalbert of Prague.