An ideal black body at thermal equilibrium emits radiation in all frequency ranges. It emits more energy as the frequency increases. By calculating the total amount of radiated energy, it can be shown that a blackbody would release an infinite amount of energy. This contradicted the principles of conservation of energy and showed a new model was needed for the behaviour of blackbodies. This happened around the end of the nineteenth century. It was one of the things that led to the invention of quantum mechanics.