Ivailo had to flee to his enemy the Tatar Nogai Khan, who later killed him.