Wilhelm Röntgen accidentally discovered X-rays while experimenting with cathode rays inside his laboratory in Germany.