Glucose-6-phosphatase is an enzyme that catalyzes the hydrolysis of glucose-6-phosphate to glucose and inorganic phosphate, playing a crucial role in glucose homeostasis. This enzyme is primarily found in the liver and kidneys, where it facilitates the release of glucose into the bloodstream during fasting states, thus contributing to maintaining blood sugar levels.