A closure device for connecting to parts with each other is provided. The closure device includes a first closure part which includes a first base body and a first form-fit portion stationarily arranged on the first base body, and a second closure part which includes a second base body and a second form-fit portion stationarily arranged on the second base body. For closing of the closure device the first closure part and the second closure part can be attached to each other, whereby the second form-fit portion of the second closure part can be brought in engagement with the first form-fit portion of the first closure part in a direction of engagement, so that in a closed position the form-fit portions positively are in engagement with each other. A recoil element is arranged on one of the closure parts and is elastically shiftable along the direction of engagement.