In 1875 he became a professor at Cambridge University, while carrying out much of his experimental work at the Royal Institution in London. He began studying gases at low temperatures and in 1872 invented the Dewar flask. In 1891, together with Frederick Abel (1827–1902), he developed the smokeless propellant explosive cordite, and in 1898 was the first to liquefy hydrogen.