A switchgear cabinet with an air-conditioning device having a heat exchanger, wherein the air in the interior of the switchgear cabinet can be or is conducted to the heat exchanger and can be conditioned by the heat exchanger. Effective air-conditioning of the interior of the switchgear cabinet, along with simultaneously reduced energy requirements, is possible if the heat exchanger is embodied as an underground heat exchanger and is placed into the ground.