The Ly dynasty fought wars against the weakening Champa state and the eventual conquest of Cham territory greatly increased size of the emerging Vietnamese state. This conquest accompanied by an aggressive policy of colonization that imposed northern social and political structures onto the newly settled territories, destroying the Cham civilization. A chain of homogenous villages was built that stretched from the Chinese border to the Gulf of Thailand and consolidated the area under Ly dynasty rule.