A building distribution box with a fire extinguishing function is disclosed in the invention, and comprises a fire extinguisher body and a box body, the side face of the box body is fixedly connectedwith a threaded cylinder, a rotating pipe movably penetrates through the threaded cylinder, the end of the rotating pipe communicates with an overturning wheel, the overturning wheel is perpendicularto the rotating pipe, and the rotating pipe is filled with an evaporation liquid; and a rotating rod is slidably connected into the overturning wheel, one end of the rotating rod penetrates through the overturning wheel and is fixedly connected with a friction plate, and a heat conduction metal wire is arranged on the side, away from the overturning wheel, of the friction plate. According to the building distribution box with the fire extinguishing function, at the moment when the box body turns over, the friction plate is impacted, the rotating rod is stressed to move inwards at the moment, and meanwhile, air pressure impacts the rotating rod, so that the box body is buffered at the moment when the box body turns over and falls to the ground, elements in the box body are prevented from being damaged, and the safety of the box body is improved; and through the adaptive fire extinguisher body, the distribution box has a fire extinguishing function in emergency.