Immediately on his return to England, Markham informed his father of his determination to leave the navy. One of the reasons for his disaffection was the severity of the corporal punishment that was constantly administered for what in his view were trivial offences. He had been in trouble during his "Collingwood" service for attempting to prevent the flogging of a crewman. He had also become disenchanted by the idleness that had occupied long periods of his service. With some regret the elder Markham consented to his son's request, and after taking and passing the gunnery part of the examination for the rank of lieutenant, Markham resigned from the service at the end of 1851.