Over several years Charles drove his foreign opponents out of the country and installed himself on the Hungarian throne. At that time central power was weakened in Hungary, and the country was ruled by local warlords lording over smaller principalities and dukedoms.
For many years, Charles successfully expelled foreign rivals from Hungary and took control of the throne. During this period, Hungary's central government was weak, with local warlords ruling over various smaller territories.