 His grandfather was the famous doctor Carl Benedict Mesterton.Mesterton's father died in 1889, and in 1899 his mother married the poet Oscar Levertin, who became Mesterton's stepfather.Following his upper-secondary final examination, Mesterton was trained as a reserve officer in the Swedish Army.