Towards the end of the Tang Dynasty, Zhu Wen usurped the throne and established the Liang Kingdom. A…