A peasant rebellion, among the list of few profitable these types of in record, established the swineherd Ivaylo as a Tsar. His short reign was essential in recovering—no less than partly—the integrity in the Bulgarian state. A comparatively thriving period adopted just after 1300, but led to 1371, when factional divisions brought about Bulgari