The phrase " the ruler is righteous " came from the Analects of Confucius, which meant " the ruler upheld justice." Literature and politics are closely related. Literature works can reflect and express social reality, and can also influence and shape people's thoughts and behavior. Therefore, the relationship between literature and politics could be summarized as follows: 1. Literature can reflect and express political reality. In ancient times, literature was one of the main ways to reflect politics and society. For example, Water Margins depicted the dark reality of Song Dynasty society, reflecting the social problems of government coercion and rebellion. The Dream of the Red Chamber, on the other hand, reflected the hypocrisy and cruelty of the feudal society through the love story of Jia Baoyu and Lin Daiyu. 2. Literature can influence political decisions. Political decisions were often influenced by literary works. For example, after the Russian revolution in the early 20th century, the literary work "How Steel was Tempered" profoundly reflected the reality of the Soviet society and the will of the people, becoming an important force to inspire the Soviet people's revolution. 3. Literature can shape political ideas. Literature works could reflect social values and people's political views by shaping the thoughts and behaviors of the characters. For example, in Water Margins, Lin Chong's rebellious spirit and sense of justice reflected the people's strong resistance to corruption and injustice in ancient society. Therefore, the relationship between literature and politics was mutual. Literature could provide reference and suggestions for political decision-making, and it could also influence and shape people's political concepts and values. At the same time, politics also needed to rely on the support and propaganda of literary works to better reflect and shape social reality and promote social progress.