The prime mover in the period from 1525 onwards was
Nguyen Kim. His daughter married the young head of the Trịnh family
Trinh Kiem. Around 1530, Le dynasty loyalist rebels were forced into exile in
Lan Xang (modern-day
Laos) but they gathered a new army and captured some southern provinces of
Dai Viet. In 1545, Nguyen Kim and subsequently his eldest son
Nguyen Uong was assassinated. Nguyen Kim's son-in-law, Trinh Kiem, then took control over the Royal army. In 1558, Trịnh Kiểm gave the rulership over the southernmost province of
Quang Nam to
Nguyen Hoang, his wife's brother and the second son of Nguyen Kim. The suspicious causes of his father's and brother's deaths, as well as his brother's subsequent takeover, probably caused bitter resentment in Nguyen Hoang and the later rivalry between the two families. For the next 55 years, Nguyen Hoang ruled
Quang Nam. He gradually asserted his control over the province and extended his control south into the remaining
Champa lands. Periodically, he sent military forces north to help the Trinh in their long fight against the Mạc dynasty. In 1570 Trinh Kiem died and was succeeded by his second son
Trinh Tung, a vigorous leader who captured
Hanoi from the Mạc king in 1572. However, the Mạc emperor (
Mac Mau Hop) recaptured the city the next year. 20 years later in 1592, Trinh Tung again captured Hanoi and executed
Mac Mau Hop. In 1593, Nguyen Hoang went personally to the court, bringing money and an army to help destroy the remaining Mac armies. Once the Mạc were defeated, Nguyen Hoang held the office of Grand Vizier for the next 7 years. However, his nephew Trinh Tung became increasingly wary of Nguyen Hoang's influence in the court and kept Hoàng near him at all times for surveillance purposes. Nguyen Hoang adopted Trinh Tung's two important generals as his nephews and incited them to rebel against their commander. When the rebels stormed the court, Trinh Tung fled with the Emperor while Hoàng took to the Southern Provinces, never to return. In 1600 the old Nguyen ruler broke relations with the
Trinh court and titled himself as the
Vuong (a term meaning prince or king). Hoang died in 1613. The new leader of the Nguyen,
Nguyen Phuc Nguyen, continued his father's policy of defiance, but also initiated friendly relations with the Europeans sailing into the area. A foreign trading post was set up in
Hoi An. By 1615 the Nguyen were producing their own bronze cannons with the aid of
Portuguese engineers. ==First campaign==