Born Nguyễn Phúc Đảm at Gia Định in the middle of the Second Tây Sơn – Nguyễn Civil War, Minh Mạng was the fourth son of lord Nguyễn Phúc Ánh – future Emperor Gia Long. His mother was Gia Long's second wife Trần Thị Đang (historically known as Empress Thuận Thiên). At the age of three, under the effect of a written agreement made by Gia Long with his first wife Tống Thị Lan (Empress Thừa Thiên), he was taken in and raised by the lord consort as her own son.