A locking device for locking a first component to a second component, the device having: a catch element for fastening to the first or second component; a latching unit for fastening to the second or first component; the latching unit comprising a release element; and the release element can be moved between a rest position, which arranges the first latching body in the first latching recess of the catch element and in the receiving opening of the release element, and a release position, which releases the engagement between the first latching body and the first latching recess of the catch element.