 He was still employed with the Egyptian Army, and served in Egypt with the Nile Expedition as an Acting Adjutant-General of the Egyptian Army at their base from 1896 to 1898.On 27 December 1898, he married Saidie Merton, an Australian, at Cairo.Hacket Pain's wife was from a Jewish family and in 1908 she unsuccessfully challenged her grandfather's will which gave her the proceeds of the investment of £1,500 but provided that it would be cut off should she marry outside the Jewish faith.