An electronic cigarette is provided, which comprises a battery component. A battery, a PCB board and a press-key switch are provided in the battery component, and the press-key switch is set on the PCB board. An end face of the battery is located opposite one end face of the PCB board. A first electrode pin and a second electrode pin are provided on one end face of the battery, wherein the end face of the battery is adjacent to the PCB board. A first socket and a second socket are provided at one side of the PCB board, wherein the side of the PCB board is adjacent to the battery. The first electrode pin is inserted and soldered in the first socket, and the second electrode pin is inserted and soldered in the second socket.