The Cumans initially managed to defeat the Grand Prince Vladimir II Monomakh of Kievan Rus' in 1093 at the Battle of the Stugna River, but they were defeated later by the combined forces of Rus principalities led by Monomakh and were forced out of the Rus' borders to the Caucasus. In these battles some Pecheneg and Oghuz groups were liberated from the Cumans and incorporated into the Rus' border-guard system. Khan Boniak launched invasions on Kiev in 1096, 1097, 1105, and 1107. In 1096, Boniak attacked Kiev and burned down the princely palace in Berestove; he also plundered the Kievan Cave Monastery. Boniak was defeated near Lubny in 1107 by the forces of the Kievan Rus' princes. The Cumans led by Boniak crushed the Hungarian army led by Coloman in 1099 and seized the royal treasury. In 1109, Monomakh launched another raid against the Cumans and captured "1000 tents". In 1111, 1113, and 1116, further raids were launched against the Cumans and resulted in the liberation and incorporation of more Pecheneg and Oghuz tribes.