Career
In the 1860s, he became the confidant of Empress Dowager Cixi and was subsequently executed as part of a power struggle between the empress dowager and Prince Gong. In 1869, Empress Dowager Cixi sent An on a mission to the Imperial Textile Factory in Nanjing. On this trip, An travelled on the Grand Canal with a conspicuous display of imperial authority.
This was an open violation of palace rules, which prohibited palace eunuchs from leaving the capital without authorisation on the penalty of death, so as to prevent eunuchs from gaining too much power.
When An and his entourage reached Shandong Province, the governor Ding Baozhen reported his behaviour back to the Forbidden City. Led by Prince Gong, who disliked An, the Grand Council ordered the execution of the eunuch.
Empress Dowager Ci"an seemed to have supported the decision whereas Empress Dowager Cixi, who favoured An, did not intervene on the eunuch"s behalf. According to one explanation, Empress Dowager Cixi was attending a performance of Beijing opera at the time that the decision was taken and had requested not to be disturbed.
As a result, An and six other eunuchs in his entourage were beheaded near the Ximizhi Spring in a Guandi Temple in Jinan.
An"s execution was likely part of a broader power struggle between Empress Dowager Cixi and Prince Gong.