By this time Muhammad Ali had become so ill and senile that he was not informed of his son's death. Lingering a few months more, Muhammad Ali died at Ras el-Tin Palace in Alexandria on 2 August 1849 and ultimately was buried in the imposing mosque he had commissioned in the Cairo Citadel.
Changes in detail occur during the composition: on 22 August 1849, while staying on the Isle of Wight for a family vacation, he changed on the advice of Forster, the theme of the obsession of Mr Dick, a secondary character in the novel. This theme was originally "a bull in a china shop" and became "King Charles's head" in a nod to the bicentenary of the execution of Charles I of England.