Her early life was not recorded in historical records. She married Ma Miao, governor of Jiangyou, a city located in Sichuan province. The most notable mentions about her were in the 14th centuryhistorical novel, Romance of the Three Kingdoms, which romanticizes previous events and during the Three Kingdoms period of China. The novel introduces Lady Li in Chapter 117. Lady Li's husband, Ma Miao, was the governor of Jiangyou. During Conquest of Shu by Wei, he heard that the land of the east river had fallen into the enemy's hands. Although there was something prepared for the defense, his post had a large area to protect, and he was confident that Jiang Wei would defend the Saber Pass. Therefore, he did not take his military duties very seriously, just staying at home. In 263, when Deng Ai of Wei marched to Jiangyou, Ma Miao was treacherous and refused to lead the defense saying that it was up to Jiang Wei. When Lady Li heard about the state of affairs at the border, she said to the governor, "If there is so great danger on the borders, how is it you are so unaffected?". Ma Miao replied, "The affair is in Jiang Wei's hands and is not my concern". She then replied, "Nevertheless, you finally have to guard the capital, and that is a heavy responsibility." Referring to the cowardice of the Emperor of Shu, Liu Shan, Ma Miao replied Lady Li saying: "O, well! The Emperor trusts his favorite Huang Hao entirely and is sunk in vice and pleasure. Disaster is very near. If the Wei armies get here, I shall yield. It is no good taking it seriously. " Filled with concern regarding the state of Shu, Lady Li tried by herself to raise the morale of the troops to defend the city. She insulted Ma Miao's treachery and reprimanded him for his complacency in protecting Jiangyou, saying:
"You call yourself a man! Have you such a disloyal and treacherous heart? Is it nothing to have held office and taken pay for years? How can I bear to look upon your face?".
Ma Miao was rendered speechless by her harsh scolding. Just then Lady Li's house servants came to tell her that Deng Ai, with his two thousand troops, had found their way along some road and had already broken into the city. Ma Miao was now frightened and hastily went out to find the leader and offer his formal submission. He went to the Town Hall and bowed on the steps, crying, "I have long desired to come over to Wei. Now I yield myself and my army and all the town." Deng Ai accepted Ma Miao's surrender and incorporated his army with his own force. He took Ma Miao into his service as guide to fight against Shu Han. Then came a servant with the news: "Lady Li has hanged herself!" In response to Deng Ai and his troops forcing Ma Miao to surrender, Lady Li hanged herself to demonstrate loyalty to the Shu Han. Upon learning her reasons for doing so, Deng Ai commended Lady Li's fealty and personally arranged her funeral. A poem was made to praise her honorable conduct: After the fall of Jiangyou, the capital of Shu Han Chengdu was taken over by the forces of Cao Wei, so Shu's emperor, Liu Shan, surrendered, thus ending the state of Shu Han.