sentences:  In the Middle Ages, the site was a temporary capital for Huns and then for Avars.It was subsequently ruled by the First Bulgarian Empire, prior to the Hungarian conquest.In 1028 or 1030, Chanadinus, a local pretender to Ahtum's duchy, rebelled against Ahtum and conquered the duchy with the help of Magyars.