The invention discloses a charging pile with an anti-theft function, which relates to the technical field of charging piles; specifically, it includes a base and a charging pile box, a support frame is installed on the top of the base, and a charging pile mounting seat is installed on the top of the support frame , the interior of the charging pile box is sequentially installed with a battery, a GPS locator, and a speaker, and a charging pile controller is installed on the side of the charging pile box, and the battery, GPS locator, and speaker are electrically connected to the charging pile controller. connect. In the present invention, the upper and lower parts of the charging pile can be quickly disassembled. The charging pile box needs to be separated from the internal structure through a special unlocking mechanism, which effectively prevents criminals from destroying the charging pile with simple tools. Secondly, the charging pile is equipped with a battery , GPS locator and speaker, when the charging pile is abnormally powered off or displaced, an alarm and real-time positioning will be generated in time, effectively improving the anti-theft and anti-sabotage effect of the charging pile.