Storing and releasing glucose as a branched polymer
Glycogen is a highly branched polymer of glucose stored mainly in liver and muscle. When glucose is plentiful, glycogen synthase adds glucose units to growing chains and a branching enzyme creates new branch points, which increases the number of free ends available for rapid mobilization. When glucose is needed, glycogen phosphorylase cleaves glucose units from those ends, releasing glucose-1-phosphate.
The hormonal switch between building and breaking
Insulin promotes storage by activating glycogen synthase and inhibiting phosphorylase, so glycogen is built after meals. Glucagon (in the liver) and adrenaline (in muscle and liver) flip the switch toward breakdown when energy or blood glucose is needed. A key distinction is that liver glycogen can release free glucose into the blood, while muscle glycogen lacks glucose-6-phosphatase and is used locally for the muscle's own energy. General educational information about metabolism, not medical advice.