Tension continued through the 12th century and into the 13th century, when the Mongol invasions started. After nearly 30 years of warfare, Goryeo swore allegiance to the Mongols, with the direct dynastic rule of Goryeo monarchy.