At the age of 11, Mahomed joined the East India Company Army and rose to the rank of captain. He fought in a number of campaigns until 1782 when he resigned from the army and two years later arrived in Britain. Staying in Ireland he wrote and published his book, The Travels of Dean Mahomet. He later moved to Portman Square where he became an assistant to Sir Basil Cochrane at his vapour bath.