Zigu (Chinese: 紫姑; lit. 'the Lady of the Latrine or the Third Daughter of the Latrine'), also known as Maogu, is a goddess representing toilets in Chinese folk religion. She was believed to be the spirit of a concubine who had been physically abused by a vengeful wife and died in the latrine. It is believed that her cult originated in the Shanxi region and spread across China by the Tang period. According to the legend, the true identity of Zigu is Consort Qi of the Han Dynasty, who was tortured and killed in the toilet by Empress Lü.