Groundwater resources (GW) account for nearly 30 percent of the world sustainable water supplies. Yet, this resource, which is fraught with externalities, has largely been left unregulated. The economic literature on GW is predominantly of a partial equilibrium type, taking the rest of the economy parametrically. We analyze GW regulation in a general equilibrium setting, focusing on the stabilization value of GW under natural (draught) and economic (rural-urban water transfer) shocks. A general equilibrium approach allows evaluating direct and indirect effects of GW regulation on agriculture and non-agriculture sectors and extends the scope for water policy. The analysis is applied to Morocco by extending an existing computable general equilibrium (CGE) model to include ground and surface water (SW) resources. We study effects of (i) an increase in GW extraction cost (e.g., as a result of prolonged extraction beyond natural recharge that lowers the aquifer's water table), (ii) a transfer of SW from rural (irrigation) to urban (domestic) use, and (iii) a reduction of water availability due to severe drought. We estimate the value of GW and assess the direct (partial equilibrium) and indirect (general equilibrium) impacts. We find that GW has a critical role in mitigating the negative effects of these types of shocks.