Spitteler was born in Liestal. His father was an official of the government, being Federal Secretary of the Treasury from 1849–56. Young Spitteler attended the gymnasium at Basel, having among his teachers philologist Wilhelm Wackernagel and historian Jakob Burckhardt. From 1863 he studied law at the University of Zurich. In 1865–1870 he studied theology in the same institution, at Heidelberg and Basel, though when a position as pastor was offered him, he felt that he must decline it. He had begun to realize his mission as an epic poet and therefore refused to work in the field for which he had prepared himself.