A closure device for detachably connecting two parts together, with: - a first closure part which has at least two first magnetic portions which are spaced apart from one another and form an intermediate space between them, and - a second closure part which has at least one second magnetic portion, wherein the first closure part and the second closure part can be placed against each other in a closing direction, such that the closure device assumes a closed position in which the at least one second magnetic portion is at least partially received in the intermediate space, wherein in the closed position, an attractive magnetic force (K1, K2), which is oriented perpendicularly to the closing direction, acts between firstly the at least one second magnetic portion and secondly each of the at least two first magnetic portions forming the intermediate space, wherein the first closure part has at least one first form-fit portion, and the second closure part has at least one second form-fit portion, wherein, in the closed position, the at least one first form-fit portion and the at least one second form-fit portion stand in form-fit engagement with each other, in order to prevent a relative movement of the closure parts (2, 3) against each other parallel to the closing direction, the closure device is characterized in that the at least one first form-fit portion and the at least one second form-fit portion have a form-fit face (231, 331) running obliquely to the closing direction, wherein, in the closed position, the form-fit faces (231, 331) engage behind each other. - a first closure part which has at least two first magnetic portions which are spaced apart from one another and form an intermediate space between them, and - a second closure part which has at least one second magnetic portion, wherein the first closure part and the second closure part can be placed against each other in a closing direction, such that the closure device assumes a closed position in which the at least one second magnetic portion is at least partially received in the intermediate space, wherein in the closed position, an attractive magnetic force (K1, K2), which is oriented perpendicularly to the closing direction, acts between firstly the at least one second magnetic portion and secondly each of the at least two first magnetic portions forming the intermediate space, wherein the first closure part has at least one first form-fit portion, and the second closure part has at least one second form-fit portion, wherein, in the closed position, the at least one first form-fit portion and the at least one second form-fit portion stand in form-fit engagement with each other, in order to prevent a relative movement of the closure parts (2, 3) against each other parallel to the closing direction, the closure device is characterized in that the at least one first form-fit portion and the at least one second form-fit portion have a form-fit face (231, 331) running obliquely to the closing direction, wherein, in the closed position, the form-fit faces (231, 331) engage behind each other. wherein the first closure part has at least one first form-fit portion, and the second closure part has at least one second form-fit portion, wherein, in the closed position, the at least one first form-fit portion and the at least one second form-fit portion stand in form-fit engagement with each other, in order to prevent a relative movement of the closure parts (2, 3) against each other parallel to the closing direction, the closure device is characterized in that the at least one first form-fit portion and the at least one second form-fit portion have a form-fit face (231, 331) running obliquely to the closing direction, wherein, in the closed position, the form-fit faces (231, 331) engage behind each other.