thumb|150px|the coat of arms of ulric ii of celje the counts of celje (; , ) or the counts of cilli were the most important late medieval noble family on the territory of present-day slovenia. they managed the county of cilli. risen as vassals of the habsburg dynasty, at the time the comital house died out they held the rank of immediate counts (reichsgrafen) and princes of the holy roman empire as well as many other titles in territories of present-day central europe. ==history== ===origins ===  the lords of sanneck castle were elevated to comital status by emperor louis iv in 1341 at munich, and received the title cylie or cilli derived from name of the celje castle in lower styria. in the early 14th century they had allied with the austrian habsburgs in their conflict against the meinhardiner duke henry vi of carinthia around the kingdom of bohemia, making them habsburg vassals in 1308.enciklopedija slovenije ii, 1988, f. 13  the lords of sanneck inherited the large possessions of the late counts of heunburg in 1322; the celje estates itself became a property of the dynasty in 1333, not before years of feud against several rivalling noble dynasties. frederick i, lord of sanneck, finally prevailed with the support of otto the merry, the habsburg duke of styria. in a short period of time the counts of celje owned more than 20 castles all over the territory of modern slovenia and beyond through the marriages of their daughters. with their acquiring large estates in the adjoining duchies of styria and carinthia, in the march of carniola as well as in the territories of the hungarian crown (including croatia and slavonia) their influence rose and they became one of the most powerful families in the area. count ulrich i of cilli, a leader of mercenary soldiers, joined king louis i of hungary on his 1354 campaign into dalmatia and, shortly afterwards, the rex romanorum charles iv to his coronation at rome. his son william married anna of poland, daughter of the polish king casimir iii the great. the counts of cilli were related by marriage with rulers of bosnia and polish and hungarian kings.enciklopedija slovenije ii, 1988, f. 14  also throu
Counts_of_Celje Medieval_history_of_Slovenia