A vehicle having an electrically operated drive motor, a battery for the energy supply of the drive motor, the battery being secured by a battery lock in a battery compartment of the vehicle and being removable from the battery compartment after unlocking the battery lock, and a control unit for the battery lock.