In the 19th century there was much discussion about what could be the energy source of the Sun. Why was it evident that the Sun could not be powered by chemical reactions? Kelvin and Helmholtz thought they had the answer. What was their idea and what 19th century evidence showed that they were wrong?