Answer
Gia Long was born in 1762. In 1776, when he was 15, he was forced into hiding when the Tây Sơn dynasty defeated his family. He fled to Cambodia and eventually allied with the French against the Tây Sơn. After the Tây Sơn were defeated in 1802, Gia Long became the first emperor of the Nguyễn dynasty.