A peasant rebellion, among the few profitable these in heritage, set up the swineherd Ivaylo like a Tsar. His quick reign was essential in recovering—a minimum of partially—the integrity on the Bulgarian condition. A comparatively thriving interval adopted following 1300, but ended in 1371, when factional divisions prompted Bulgaria to separate