A closure device with at least one first and one second closure part (1, 2) which are connectable together in order to close the closure device, and are releasable from one another in order to open the closure device, wherein - the second closure part is movable toward the first closure part in a closing direction along a connection axis for closing the closure device, - the closure device comprises at least two magnetic elements (M1, M2; M3, M4) which, when the closure parts (1, 2) are moved toward one another, cause magnetic attraction between the first closure part and the second closure part, and - the first closure part comprises a first connection element and the second closure part a second connection element, wherein, with the closure device closed, the first and second closure parts (1, 2) are held together by means of the first and second connection elements (12, 22), characterized in that the first connection element comprises at least one guide portion and the second connection element at least one closure portion, wherein - the guide portion comprises a guide surface which is angled toward the connection axis, is contacted by the closure portion when the second closure part is moved toward the first closure part and which forces the second connection element to rotate about the connection axis relative to the connection element along a first direction of rotation when the first and second closure parts (1, 2) are moved closer together, - the guide portion comprises an end in the first direction of rotation such that the closure portion is guidable past the guide portion in the closing direction before the second connection element reaches an intermediate position relative to the first connection element, - the closure device comprises an adjusting device (M3, M4; 24) by means of which the second connection element in the intermediate position is acted upon with a force in a second direction of rotation opposite the first direction of rotation such that the second connection element is automatically rotated out of the intermediate position relative to the first connection element and about the connection axis along the second direction of rotation into a closed position, and - in the closed position the closure portion engages behind the guide portion at least in part in order to hold the first and second connection elements (12, 22) and consequently the first and second closure parts (1, 2) together, and for releasing the first and second closure parts (1, 2) from one another, the second connection element is rotatable in the first direction of rotation about the connection axis relative to the first connection element in order to open the closure device. - the second closure part is movable toward the first closure part in a closing direction along a connection axis for closing the closure device, - the closure device comprises at least two magnetic elements (M1, M2; M3, M4) which, when the closure parts (1, 2) are moved toward one another, cause magnetic attraction between the first closure part and the second closure part, and - the first closure part comprises a first connection element and the second closure part a second connection element, wherein, with the closure device closed, the first and second closure parts (1, 2) are held together by means of the first and second connection elements (12, 22), - the guide portion comprises a guide surface which is angled toward the connection axis, is contacted by the closure portion when the second closure part is moved toward the first closure part and which forces the second connection element to rotate about the connection axis relative to the connection element along a first direction of rotation when the first and second closure parts (1, 2) are moved closer together, - the guide portion comprises an end in the first direction of rotation such that the closure portion is guidable past the guide portion in the closing direction before the second connection element reaches an intermediate position relative to the first connection element, - the closure device comprises an adjusting device (M3, M4; 24) by means of which the second connection element in the intermediate position is acted upon with a force in a second direction of rotation opposite the first direction of rotation such that the second connection element is automatically rotated out of the intermediate position relative to the first connection element and about the connection axis along the second direction of rotation into a closed position, and - in the closed position the closure portion engages behind the guide portion at least in part in order to hold the first and second connection elements (12, 22) and consequently the first and second closure parts (1, 2) together, and for releasing the first and second closure parts (1, 2) from one another, the second connection element is rotatable in the first direction of rotation about the connection axis relative to the first connection element in order to open the closure device.