Glucose-6-phosphatase is an enzyme that catalyzes the hydrolysis of glucose-6-phosphate to glucose and inorganic phosphate. This reaction plays a crucial role in glucose homeostasis, particularly during gluconeogenesis and glycogenolysis, allowing for the release of free glucose into the bloodstream to maintain energy levels.