By 1642, Gong was serving in the government administration in Beijing, where his impeachments of government ministers and criticism of imperial policies angered the Chongzhen Emperor, who had him imprisoned, in horrible circumstances. Released in early Spring, 1644, he was reunited with Gu Mei. Shortly afterwards the capital was first sacked by the peasant army led by Li Zicheng, and then seized by the Manchu forces which poured in through the Shanhai Pass and proceeded to establish the Qing dynasty. Throughout this, Gong Dingzi managed to keep up his literary creativity.
Works
Among other works, Gong Dingzi's White Willow Gate (Baimen liu) collection of ci (song lyric) poetry survives.
Zhang, Hongsheng [張宏生] (2002). "Gong Dingzi and the Courtesan Gu Mei: Their Romance and the Revival of the Song Lyric in the Ming-Qing Transition", in Hsiang Lectures on Chinese Poetry, Volume 2, Grace S. Fong, editor. (Montreal: Center for East Asian Research, McGill University).