A peasant rebellion, on the list of number of effective this kind of in background, set up the swineherd Ivaylo to be a Tsar. His brief reign was essential in recovering—at the very least partly—the integrity on the Bulgarian state. A comparatively flourishing period of time followed after 1300, but ended in 1371, when factional divisions broug