The invention provides borrowing-and-returning equipment of a mobile power source and a control method thereof. The borrowing-and-returning equipment of the mobile power source comprises a support part and a door opening-and-closing part which are mutually connected, wherein the door opening-and-closing part comprises a door opening-and-closing motor, a rolling shaft provided with gears and a doorprovided with racks, the rolling shaft is arranged on the support part, the door opening-and-closing motor is connected to the rolling shaft and drives the rolling shaft to rotate, and the gears arematched with the racks; the support part comprises a door support, the door is slidingly connected to the door support, and the door support is provided with a through hole capable of being used for the mobile power source to enter and exit. According to the borrowing-and-returning equipment of the mobile power source, through cooperation connection between the gears and the racks, when the gearson the rolling shaft are driven by the door opening-and-closing motor to rotate, the racks conduct linear motion along with the gears on the rolling shaft are driven by the door opening-and-closing motor to rotate, the door provided with the racks moves on the door support, and therefore door opening or door closing is achieved. The door opening-and-closing mode adopts a high-reliability gear-rackcooperation connection mode, the abnormal working condition caused when an electromagnetic valve faults is avoided, user experiences are improved, and meanwhile the follow-up maintenance cost is reduced.