Locking device for a convertible top of a vehicle, - with a locking hook which has a gripping end at the front and a bearing end at the rear, - with a housing in which the bearing end is mounted so as to be horizontally adjustable in a longitudinal direction of the locking hook, - with a driving device for adjusting the locking hook, - with a sensor system for identifying a closed position and an open position of the locking hook, - wherein the driving device has a driving link and a crank drive for driving the driving link, - wherein the crank drive has a crank which is rotationally adjustable about a vertical axis of rotation and is arranged eccentrically with respect to the axis of rotation and is connected in terms of drive to the driving link, wherein the sensor system interacts with the crank drive, characterized - in that the driving device has at least one two-link mechanism, the driving link which is connected in terms of drive to the two-link mechanism and an actuator for driving the driving link, - in that the two-link mechanism has a front link which is mounted on the housing so as to be pivotable at the front about a front vertical pivot axis, - in that the two-link mechanism has a rear link which is connected in terms of drive at the rear to the bearing end of the locking hook via a coupling device and is mounted on the coupling device so as to be pivotable about a rear vertical pivot axis, - in that the two links (9, 12) of the two-link mechanism are mounted on each other so as to be pivotable about a further vertical pivot axis between the pivot axes (13, 14) thereof, - in that the driving link is mounted on one of the links, between the pivot axes (13, 14) thereof, so as to be pivotable about a further vertical pivot axis. - with a locking hook which has a gripping end at the front and a bearing end at the rear, - with a housing in which the bearing end is mounted so as to be horizontally adjustable in a longitudinal direction of the locking hook, - with a driving device for adjusting the locking hook, - with a sensor system for identifying a closed position and an open position of the locking hook, - wherein the driving device has a driving link and a crank drive for driving the driving link, - wherein the crank drive has a crank which is rotationally adjustable about a vertical axis of rotation and is arranged eccentrically with respect to the axis of rotation and is connected in terms of drive to the driving link, - in that the driving device has at least one two-link mechanism, the driving link which is connected in terms of drive to the two-link mechanism and an actuator for driving the driving link, - in that the two-link mechanism has a front link which is mounted on the housing so as to be pivotable at the front about a front vertical pivot axis, - in that the two-link mechanism has a rear link which is connected in terms of drive at the rear to the bearing end of the locking hook via a coupling device and is mounted on the coupling device so as to be pivotable about a rear vertical pivot axis, - in that the two links (9, 12) of the two-link mechanism are mounted on each other so as to be pivotable about a further vertical pivot axis between the pivot axes (13, 14) thereof, - in that the driving link is mounted on one of the links, between the pivot axes (13, 14) thereof, so as to be pivotable about a further vertical pivot axis.