Glycogen acts as an energy reservoir. When the body requires energy, glycogen is broken down to release glucose, which is then used to produce ATP, the body's primary energy molecule.