Metabolism encompasses both catabolism (breaking down molecules to release energy) and anabolism (synthesizing complex molecules from simpler ones, requiring energy).