At this stage Carathéodory began training as a military engineer. He attended the École Militaire de Belgique from October 1891 to May 1895 and he also studied at the École d'Application from 1893 to 1896. In 1897 a war broke out between the Ottoman Empire and Greece. This put Carathéodory in a difficult position since he sided with the Greeks, yet his father served the government of the Ottoman Empire. Since he was a trained engineer he was offered a job in the British colonial service. This job took him to Egypt where he worked on the construction of the Assiut dam until April 1900. During periods when construction work had to stop due to floods, he studied mathematics from some textbooks he had with him, such as Jordan's "Cours d'Analyse" and Salmon's text on the analytic geometry of conic sections. He also visited the Cheops pyramid and made measurements which he wrote up and published in 1901. He also published a book on Egypt in the same year which contained a wealth of information on the history and geography of the country.