A closure device for connecting two parts includes a first connecting module and a second connecting module. The first connecting module can be arranged on the second connecting module in a closing direction, is mechanically latched with the second connecting module by a latching means in a closed position, and is held at the second connecting module against the closing direction. The first connecting module can be released from the second connecting module by movement of the first connecting module in an opening direction. A form-fit element is arranged on one of the connecting modules, which is formed to engage a recess on the other one of the connecting modules after establishing the latching of the first connecting module with the second connecting module by moving the first connecting module relative to the second connecting module against the opening direction.