But before this time, King Chulalongkorn fully realized that it was necessary to modernize the administration of the country in order to protect the nation from foreign encroachment. Thai students were sent to receive their education overseas and foreigners were also employed to provide assistance in technical matters