By the 750s, Nanzhao had conquered Yunnan and became a potential rival to Tang China. The following period saw several conflicts between Tang China and Nanzhao. In 750, Nanzhao attacked and captured Yaozhou, the largest Tang settlement in Yunnan.