The real-life adventures of Frederick Courtney Selous, the British big game hunter and explorer of Colonial Africa, inspired Haggard to create the Allan Quatermain character.
The beliefs and views of the fictional Quatermain are those of Haggard himself, and beliefs that were common among the 19th-century European colonists.