Much has been written about the Riemann hypothesis, which many consider to be the most important unsolved problem in mathematics today which Riemann introduced in his famous 8-page paper from 1859. This talk aims to explain the motivation behind his paper, which only incidentally mentioned the Riemann hypothesis.