The invention relates to the technical field of new energy, and discloses a new energy automobile charging pile capable of automatically taking up cables, which comprises an equipment main body; buffer pads are arranged on the two sides of the equipment main body; guide rods are fixedly connected to the ends, close to the equipment main body, of the buffer pads, and first spring rods are fixedly connected to the ends, away from the buffer pads, of the guide rods. According to the new energy automobile charging pile capable of automatically taking up wires, after charging is completed, a charging gun is placed in a clamping groove again; at the moment, the charging gun extrudes a contact block downwards, a switch assembly in a second spring rod abuts against the contact block, a circuit isclosed, an electromagnet is powered on, magnetism is enhanced, and a metal sliding block is attracted to slide upwards and abut against the electromagnet; a pawl synchronously moves along therewith and gradually gets away from a ratchet wheel, a coil spring gradually resets and drives the ratchet wheel to rotate anticlockwise, the ratchet wheel drives a winding roller to rotate synchronously, thewinding roller winds a cable, and the cable is prevented from being excessively exposed outside and being contaminated and damaged.