Cosijoeza's son Cosijopii became the ruler of Tehuantepec shortly before the arrival of the Spanish in 1518. Pedro de Alvarado made two incursions from the west in 1522 arriving to the Mixe area of Ultatepec and Xoconochco. Alvarado entered Tehuantepec again in 1524, subduing the local population in Tequixixtlan and Xallapan. However, many years would pass before the Spanish had full control of the area. After the Conquest, Cosijopii remained the head of the city, but subject to Spanish hegemony from 1521 until his death in 1563.