Nuclear fusion
The nucleus made by fusion is heavier than either of the starting nuclei. However, it is not as heavy as the combination of the original mass of the starting nuclei (atoms). This lost mass is changed into lots of energy. This is shown in Einstein's famous E=mc2 equation.