A device for storing electrical energy is provided, especially for a motor vehicle. The device includes at least one rechargeable storage cell and a cooling unit which is in thermal contact with the storage cell. The storage cell is accommodated in a retaining element and is in thermal contact with the retaining element, mating molded sections on the retaining element and the cooling unit mechanically interconnecting the retaining element and the cooling unit in a self-locking manner.