Trung and reverted to the prior Confucian orthodoxy. This included restoring the civil service to the forefront of decision making, ahead of the army, and reversed Quang Trung's education reforms, which put science before the study of Confucian literature. Family and succession Gia Long had many wives, but the most famous consorts are Empress Thừa Thiên, Empress Thuận Thiên, and Consort Lê Ngọc Bình. In 1780, during the war against the Tây Sơn, he married Tống Thị Lan, the daughter of a Nguyen general. She bore him two sons, the first being Nguyễn Phúc Chiêu, who died shortly after birth in Phú Quốc island, and later Crown Prince Nguyễn Phúc Cảnh. Following Gia Long's ascension to the throne, she became Empress consort and was given the title of Empress Thừa Thiên posthumously. Around 1781, during the war with the Tây Sơn, he married his second wife Trần Thị Đang, a daughter of one of his ministers. She bore him three sons, Nguyễn Phúc Đảm, Nguyen Phuc Dai and Nguyen Phuc Chan, and was posthumously given the title of Empress Thuận Thiên. After his conquest of Vietnam, Gia Long, took his third wife, Lê Ngọc Bình. A daughter of Lê Hiển Tông, the penultimate emperor of the Lê dynasty, she was betrothed by Emperor Quang Trung to his son Quang Toản. After Gia Long defeated the Tây Sơn and executed Quang Toan, he took her as his wife. Gia Long had almost 100 concubines who were daughters of his mandarins; Gia Long did not favor polygamy but he did so to secure the loyalty of his inner circle. As Crown Prince Nguyen Canh had died of smallpox during the war against the Tây Sơn, it was assumed that Canh's son would succeed Gia Long as emperor, but in 1816 Nguyễn Phúc Đảm, the son of his second wife, was appointed instead, and ruled as Minh Mạng. Gia Long chose him for his strong character and his deep aversion to westerners, whereas Canh's lineage had converted to Catholicism and were reluctant to maintain their Confucian traditions such as ancestor worship. Before his accession, Nguyễn Phúc Đảm was reported to have praised the Japanese for having expelled and eradicated Christianity from their country. Gia Long told his son to treat the Europeans respectfully, especially the French, but not to grant them any position of preponderance. Gia Long died on 3 February 1820 and