The Song Dynasty was the era in which the economy accounted for the highest proportion of the world economy in the history of China. However, the country is actually poor and weak, and there is serious corruption besides redundant soldiers, officials and expenses.
In the Song Dynasty, literature was valued over martial arts, and sometimes civil servants who committed capital crimes were pardoned because they were scholars, so there were many corrupt officials.
Tolerance for officials at all levels, including the emperor. Even the emperor left a famous saying: the corruption of ten civil servants is not as serious as the rebellion of a military commander.
In the Song Dynasty, agriculture, trade and handicrafts were developed, and corrupt officials were rich and greedy.
There were frequent foreign wars in the Song Dynasty, and the minds of some officials wandered between countries, which was more likely to lead to corruption.