Quilliam converted to Islam in 1887 after visiting Morocco to recover from an illness. Quilliam purchased numbers 8, 11 and 12 Brougham Terrace, Liverpool, following his conversion, thanks to a donation from Nasrullah Khan, Crown Prince of Afghanistan.