A vehicle comprising: a drive unit, a battery pack including a plurality of power storage units (11, 12), and a switching relay (R1, R2) configured to switch between a first state and a second state, the first state being a state where the power storage units (11, 12) are electrically connected to each other, and the second state being a state where the power storage units (11, 12) are electrically disconnected from each other; and a plurality of charging ports (90a, 90b) configured to be electrically connected to the power storage units (11, 12), respectively, a main relay device provided between the battery pack and the drive unit, the main relay device including a first main relay and a second main relay, the main relay device being connected to the battery pack via a positive electrode line which is connected to the first main relay, and a negative electrode line which is connected to the second main relay, characterised in that the charging ports (90a, 90b) include a first charging port and a second charging port, the vehicle comprising an electronic control unit configured to detect whether one or both first and second charging ports (90a, 90b) are respectively connected to a charging connector (200a, 200b) of a charging facility (300a, 300b), and to switch the switching relay (R1, R2) to the second state when it is detected that the first and second charging ports (90a, 90b) are both connected to a charging connector (200a, 200b), or switch the switching relay (R1, R2) to the first state when it is detected that the charging ports (90a, 90b) are not both connected to a charging connector (200a, 200b), after a predetermined time has elapsed. a drive unit, a battery pack including a plurality of power storage units (11, 12), and a switching relay (R1, R2) configured to switch between a first state and a second state, the first state being a state where the power storage units (11, 12) are electrically connected to each other, and the second state being a state where the power storage units (11, 12) are electrically disconnected from each other; and a plurality of charging ports (90a, 90b) configured to be electrically connected to the power storage units (11, 12), respectively, a plurality of power storage units (11, 12), and a switching relay (R1, R2) configured to switch between a first state and a second state, the first state being a state where the power storage units (11, 12) are electrically connected to each other, and the second state being a state where the power storage units (11, 12) are electrically disconnected from each other; and a plurality of charging ports (90a, 90b) configured to be electrically connected to the power storage units (11, 12), respectively, a main relay device provided between the battery pack and the drive unit, the main relay device including a first main relay and a second main relay, the main relay device being connected to the battery pack via a positive electrode line which is connected to the first main relay, and a negative electrode line which is connected to the second main relay, characterised in that the charging ports (90a, 90b) include a first charging port and a second charging port, the vehicle comprising an electronic control unit configured to detect whether one or both first and second charging ports (90a, 90b) are respectively connected to a charging connector (200a, 200b) of a charging facility (300a, 300b), and to switch the switching relay (R1, R2) to the second state when it is detected that the first and second charging ports (90a, 90b) are both connected to a charging connector (200a, 200b), or switch the switching relay (R1, R2) to the first state when it is detected that the charging ports (90a, 90b) are not both connected to a charging connector (200a, 200b), after a predetermined time has elapsed.