To protect (we the people) from anarchy and chaos
The earliest Chinese people did not have to worry about invasions from foreign countries because of their strong army and geography. The Chinese army present in ancient times were very strong and able to defend their lands. Chinese also build china wall in order to protect their lands from the invasion of other people. The geography of china also made difficult for the invaders to capture china.
Yes! Trains started to be built in 1839 to connect the royal palace of Naples to the seaside. More were built in 1861 to connect from the Alps to Sicily.