He was actually working on cathode rays. Thompson realizes that the rays he was working with could be deflected by an electric field and that these rays weren't just 'light' but that they were negatively charged particles. These would later be called 'electrons'.