The utility model relates to the technical field of waterproof battery boxes, in particular to a battery box with a waterproof function, which comprises an aluminum shell, an upper shell and a lower shell, the upper shell is arranged above the aluminum shell, an upper sealing ring is arranged between the upper shell and the aluminum shell, the upper sealing ring is fixed with the aluminum shell through a screw column, the lower shell is arranged below the aluminum shell, and the upper sealing ring is fixed with the aluminum shell through a screw column. The upper sealing ring is fixed below the aluminum shell through a screw column, the lower sealing ring is fixed below the aluminum shell through a screw column, the upper sealing ring and the lower sealing ring comprise a bottom sealing layer, a side sealing layer, a screw column sealing boss, a sealing ring limiting pre-pressing boss and a fixing groove, the bottom sealing layer is tightly attached to the aluminum shell, and the fixing groove is formed below the bottom sealing layer. The periphery of the outer side of the bottom sealing layer is respectively provided with a screw column sealing boss, the upper portion of the bottom sealing layer is connected with the side face sealing layer, and the left side and the right side of the side face sealing layer are respectively provided with a concave sealing ring limiting pre-pressing boss. Compared with the prior art, the concealed screw columns are arranged, the specially-made sealing rings are arranged, the upper shell and the lower shell are tightly attached to the aluminum shell through the sealing rings, and the waterproof effect is achieved.