The invention relates to a lock for a door or flap, with a locking mechanism consisting of a rotary latch (4) and a pawl (6), and at least one spring (23) which is capable of pivoting a pivotable component of the lock from a starting position in the direction of an end position by means of spring force. In the end position, the pivotable component is not subjected to a spring force of the spring (23). In particular, operating noises can thus be kept low.