The invention discloses an automatic door opening and closing device and a refrigerator with the device, comprising a driving mechanism, a base for supporting the driving mechanism, a transmission mechanism, a hinge seat, a hinge body, and a control unit, the hinge body and The hinge shaft is fixedly connected, the hinge seat has two side flanges, and through holes are oppositely opened on the two side flanges, the two ends of the hinge shaft pass through the through holes, and one end of the hinge shaft passes through the The transmission mechanism is connected with the power output shaft of the driving mechanism, and the driving mechanism is connected with the control unit and accepts the control of the control unit. In the automatic door opening and closing device of the present invention, the driving mechanism drives the hinge body to rotate around the hinge shaft by driving the transmission mechanism. When in use, the hinge body is fixed on the door body to realize automatic opening and closing of the door. Device to open the door.