Before the establishment of the imperial examination system, the scholar clan was powerful, and the assessment of talents was often affected, and even later ordinary people had no opportunity to enter the dynasty as officials. The establishment of the imperial examination gave civilians the opportunity to pass the examination and enter the army. When entering Beijing to catch the exam, the candidates all went to the capital from different places, so some people questioned that the candidates had a rich entanglement as living expenses along the way, why did the bandits dare not rob it?

Bandits in our cognition is a group of people who rob homes and do nothing wrong, they rob money and even hurt the lives of others, which has a serious impact on social security and the safety of the people, so when the ancient examinees carried gold and silver jewelry through, these bandits should be robbed, but they did not do so in history. In fact, we are also misled by the image of bandits in film and television dramas, and ancient bandits also have their own rules.
Bandits generally rob rich people or caravans, and it is difficult to see the situation of attacking candidates. Many candidates in ancient times needed a lot of entanglements along the way when they entered Beijing to catch the exam, if their families did not have so much money, there would also be a court to give travel expenses, and some rich people in their hometowns would also be funded, so they had a lot of money. For bandits, if they robbed, they would get a lot of money, but the situation at that time did not allow them to do so.
During the reign of Emperor Wu of the Han Dynasty, Confucianism began to be exalted, and since then people have been influenced by Confucianism, and the status of Confucianism has been promoted, and people will naturally have more respect for Confucianism. Moreover, at that time, reading was a sacred existence for people, and readers had a special position in people's hearts, so even if some people fell into the grass, they were still affected by these ideas, and when facing the candidates, the bandits still had a conscience, and they would not rob them.
We also said that many bandits in ancient times had their own rules, and the bandits who lectured on morality and rules not only did not rob the candidates' entanglements, but also practiced foot doctors, ferrymen, monks, and other people who would not attack them. More importantly, the imperial court also considered the problem of bandits, so it would issue a flag to each candidate, so that they could not be pinned around their waists, and there were also regional governments responsible for their safety along the way, so the bandits would not provoke the government without their own strength.
In addition, candidates also have identity certificates issued by the government, and every time they go to a place, their whereabouts will be recorded, and if there is any accident on the road, the government can also track it down in time. The imperial court attached great importance to the candidates who entered Beijing to take the exam, and the candidates also had great protection, or they would have more or less connections, so they generally did not appear to be robbed by bandits on the road.