Mitochondria generate energy through the process of cellular respiration, converting nutrients into ATP, a molecule that powers cellular functions.