Mass-energy equivalence: E = mc²
Mass is an extremely concentrated form of energy, so when a nucleus forms or splits and a little mass seems to disappear, that missing mass has really turned into a very large amount of energy, given by the mass times the speed of light squared.
A worked example
In one fission of uranium-235, the products have 3.1 × 10⁻²⁸ kg less mass than the starting particles. The energy released is E = mc² = (3.1 × 10⁻²⁸ kg)(3.00 × 10⁸ m/s)² = 2.8 × 10⁻¹¹ J. That seems small, but a single gram of uranium holds about 2.6 × 10²¹ nuclei, so fissioning all of it would release about 7 × 10¹⁰ J.
The mistake people actually make
Remember to square the speed of light, and always express the mass in kilograms. If a mass difference is given in atomic mass units, convert it first using the relationship 1 u = 1.66 × 10⁻²⁷ kg, because otherwise the calculated energy will be incorrect by an enormous factor.