A connecting device for two components (4, 5) of a patient support surface wherein the connecting device has a locking assembly that is to be provided on a first component, and a coupling point that is to be provided on a second component, wherein the first and the second components (4, 5) can be connected to one another in a respective connecting direction (v, v') and locked to one another in a locking position, wherein the coupling point has a locking receptacle in the form of a recess, wherein the locking assembly has a support that is mounted on the first component, and a locking element that is pivotably supported on the support via a pivot bearing point, wherein the locking element has a locking portion, which is received in the locking receptacle in the locking position of the first and the second components (4, 5), a bearing portion on which the pivot bearing point is arranged, and a disengagement portion that is located on a different side of the locking portion in relation to the bearing portion, wherein the locking assembly is configured such that the locking portion situated in the locking receptacle can be brought out of engagement with the locking receptacle in an unlocking process, characterized in that the locking assembly is configured such that the disengagement portion presses against an end face of the coupling point and moves the locking assembly away from the coupling point contrary to the connecting direction (v) of the locking assembly in the process. a locking assembly that is to be provided on a first component, and a coupling point that is to be provided on a second component, wherein the first and the second components (4, 5) can be connected to one another in a respective connecting direction (v, v') and locked to one another in a locking position, wherein the coupling point has a locking receptacle in the form of a recess, wherein the locking assembly has a support that is mounted on the first component, and a locking element that is pivotably supported on the support via a pivot bearing point, wherein the locking element has a locking portion, which is received in the locking receptacle in the locking position of the first and the second components (4, 5), a bearing portion on which the pivot bearing point is arranged, and a disengagement portion that is located on a different side of the locking portion in relation to the bearing portion, wherein the locking element has a locking portion, which is received in the locking receptacle in the locking position of the first and the second components (4, 5), a bearing portion on which the pivot bearing point is arranged, and a disengagement portion that is located on a different side of the locking portion in relation to the bearing portion, wherein the locking assembly is configured such that the locking portion situated in the locking receptacle can be brought out of engagement with the locking receptacle in an unlocking process, characterized in that the locking assembly is configured such that the disengagement portion presses against an end face of the coupling point and moves the locking assembly away from the coupling point contrary to the connecting direction (v) of the locking assembly in the process.