Ritter is best known for his discovery of the ultraviolet spectrum in 1801: after studying Herschel's discovery of infrared rediation, he observed the effects of solar radiation on silver salts and deduced the existence of radiation outside the visible spectrum. He also made contributions to spectroscopy and the study of electricity.