The invention relates to the technical field of photovoltaic microgrid, and discloses a switchgear for photovoltaic microgrid with heat dissipation function, including a cabinet body and a base, the top of the cabinet body is fixedly connected with a top plate, and the top of the cabinet body is connected with a A through pipe, the top of the through pipe runs through and extends to the top of the top plate, the top of the through pipe is fixedly communicated with an exhaust device located on the top of the top plate, the exhaust device includes a fixed plate, and the outer side of the fixed plate is fixed Blades are connected, and bearings are fixedly connected to the bottom of the blades. The photovoltaic microgrid switchgear with heat dissipation function, through the setting of the exhaust device, uses the natural wind speed of nature to drive the turbine to rotate, and uses the centrifugal force and negative pressure effect to convect the air inside and outside the cabinet, which can quickly discharge the hot air inside the cabinet. The effect of heat dissipation is achieved, and the exhaust device does not need electricity, has no noise, and can run for a long time, thereby achieving the effect of energy saving and environmental protection.