A functional unit of a fitting for a component, in particular for a window or a door, wherein the component has a frame and a leaf movable relative to the frame, wherein the functional unit comprises: a base body; a coupling element adjustable relative to the base body, wherein the base body is configured for fastening to the frame and the adjustable coupling element is coupled or couplable to the leaf, or vice versa; a drive for a motorized adjustment of the coupling element along an adjustment path such that, in the assembled state of the functional unit, the leaf coupled to the coupling element can be moved towards the frame; and a control device for controlling the drive, said control device being configured to provide at least one safety function for anti-trap protection, wherein the control device is configured to provide the at least one safety function only during a first section of the adjustment path, but to deactivate it during a subsequent second section of the adjustment path, in order to provide a contact pressure for a sealing engagement between the leaf and the frame, wherein the functional unit is a closure unit which, in the assembled state, is configured to releasably fix the leaf to the frame, wherein the coupling element is a closure element which can be moved by means of the drive between a closed position holding the leaf at the frame and an open position releasing the leaf, wherein the closure element is a pin which is displaceable in parallel with the plane of the frame and which, in the assembled state of the closure unit, engages into a holding receiver in the fixing position, wherein, at a wall section of the holding receiver, a slope is formed by which a movement of the pin extending in parallel with the plane of the frame can, during a running up of the pin, be converted into a movement of the leaf extending transversely to the plane of the frame, and wherein the pin is adjustable transversely to the displacement direction in at least one adjustment direction or the holding receiver is adjustable in at least one direction in and against an adjustment direction. a base body; a coupling element adjustable relative to the base body, wherein the base body is configured for fastening to the frame and the adjustable coupling element is coupled or couplable to the leaf, or vice versa; a drive for a motorized adjustment of the coupling element along an adjustment path such that, in the assembled state of the functional unit, the leaf coupled to the coupling element can be moved towards the frame; and a control device for controlling the drive, said control device being configured to provide at least one safety function for anti-trap protection, wherein the control device is configured to provide the at least one safety function only during a first section of the adjustment path, but to deactivate it during a subsequent second section of the adjustment path, in order to provide a contact pressure for a sealing engagement between the leaf and the frame, wherein the functional unit is a closure unit which, in the assembled state, is configured to releasably fix the leaf to the frame, wherein the coupling element is a closure element which can be moved by means of the drive between a closed position holding the leaf at the frame and an open position releasing the leaf, wherein the closure element is a pin which is displaceable in parallel with the plane of the frame and which, in the assembled state of the closure unit, engages into a holding receiver in the fixing position, wherein, at a wall section of the holding receiver, a slope is formed by which a movement of the pin extending in parallel with the plane of the frame can, during a running up of the pin, be converted into a movement of the leaf extending transversely to the plane of the frame, and wherein the pin is adjustable transversely to the displacement direction in at least one adjustment direction or the holding receiver is adjustable in at least one direction in and against an adjustment direction.