The real Robert Hart arrives in China during the Opium Wars and Taiping Rebellion. The Devil Soldier becomes his enemy. To survive he learns how to think like the Chinese, and becomes the only foreigner the emperor trusts. He owes this success largely to Ayaou, his concubine, whom he loves.
"Shogun" by James Clavell
"Snow Flower and the Secret Fan" and "Peony in Love" by Lisa See
"Empress Orchid" and "The Last Empress" by Anchee Min