The African Association sent him to the University of Göttingen to study Arabic and otherwise prepare for an expedition from the east into the unknown regions of North Africa. In September 1797 he arrived in Egypt, where he continued his studies. When the country was invaded by the French, he was confined in the citadel of Cairo to preserve him from the fanaticism of the populace.