Glucose-6-phosphatase is an enzyme that plays a crucial role in carbohydrate metabolism by catalyzing the hydrolysis of glucose-6-phosphate to glucose and inorganic phosphate. This reaction is essential for maintaining blood glucose levels, especially during fasting, as it allows for the release of free glucose into the bloodstream from the liver. The enzyme is primarily found in the liver and kidneys, where it contributes to gluconeogenesis and glycogenolysis, processes critical for energy production and glucose homeostasis.