Experiments with cathode rays in the late 19th and early 20th centuries lead to the discovery of the electron. Reaching this understanding required many small but important experimental steps, for instance, whether cathode rays travel in straight lines, carry energy or, as explored in this tutorial, are affected by magnetic fields.