 According to the "Livonian Chronicle of Henry", Semigallians formed an alliance with bishop Albert of Riga against rebellious Livonians before 1203, and received military support to hold back Lithuanian attacks in 1205.In 1207, the Semigallian duke Viestards () helped the christened Livonian chief Caupo conquer back his Turaida castle from pagan rebels.In 1219, the Semigallian–German alliance was cancelled after a crusader invasion in Semigallia.