A charging circuit having a storage battery terminal, a direct-current terminal and an alternating-current terminal, which is connected to an alternating-current side of a rectifier of the charging circuit, the direct-current side of which is connected via a changeover switch to a DC-to-DC converter, wherein the changeover switch connects a first side of the DC-to-DC converter either to the direct-current terminal or to a first potential of the direct-current side of the rectifier, and a second potential of the direct-current side of the rectifier is connected to the direct-current terminal via a diode, the reverse direction of which points toward the direct-current terminal, wherein a second side of the DC-to-DC converter is connected to the storage battery terminal, to which the direct-current terminal is connected via an isolating switch.