J.J. Thomson discovered the electron in 1897 through his experiments with cathode ray tubes, determining that cathode rays were composed of negatively charged particles much smaller than atoms.