In 1203, William Malaspina, a cousin of William of Cagliari, tried to marry the daughter of Barisone II of Gallura. This attempt to control the Galluran judgeship was nixed by the pope. In 1205, Lamberto Visconti married her. By a treaty confirmed in 1211, Comita allied with Genoa to conquer the whole island and bring under their control. There were to be no separate peaces. Together they invaded Gallura, now ruled by Lamberto. After that, with the support of Innocent, they invaded Arborea, an invasion which ended in the partition of the realm: half going to Barisone III, son of Peter I, and a quarter each going to Comita and William of Cagliari. The 1212 campaign was interrupted by Pisan repercussions and in 1214, William died. Lamberto and Ubaldo I Visconti took the opportunity that year to launch an offensive at Gallura, Cagliari, and Arborea, but were beaten off by Comita and Genoa. The war continued at sea, but was arrested by the entreaties of Pope Honorius III, who forced Comita to come to terms with Pisa (1 December 1217). Comita died sometime the next year, when his successor appears first as giudice on 10 November 1218.
