In 111 BC, the Han dynasty conquered Nanyue and ruled it for the next several hundred years. Han dynasty organized Nanyue into seven commanderies of the south (Lingnan) and now included three in Vietnam alone: Giao Chỉ and Cửu Chân, and a newly established Nhật Nam.