A locking device for locking a movable vehicle roof to a vehicle roof
receptacle includes a locking rail. The locking rail is supported on a
side of one of the roof receptacle and the roof. The locking rail is
longitudinally displaceable and executes a lifting movement in response
to being longitudinally displaced. A first locking element is supported
on the locking rail. A second locking element is supported on a side of
the other one of the roof receptacle and the roof. The first and second
locking elements lock against one another in response to the lifting
movement of the locking rail such that the roof receptacle and the roof
are tensioned toward one another.