He was educated at St Paul's School, London, and at Pembroke Hall, Cambridge. He became a barrister and later a clergyman, being vicar of Colyton, Devon, and afterwards of Winchfield, Hampshire.