Roentgen discovered X-rays while experimenting with cathode rays. He observed that a fluorescent screen in his lab started to glow when the cathode ray tube was activated, even though it was covered and not exposed directly to the rays. He deduced that an unknown type of ray was responsible for this effect. Roentgen named these mysterious rays "X-rays," with "X" representing the unknown.