Why a door may not latch even when the lock still turns

https://publishoryx.com/s/qy1Hs1NshkNIvUQF9axKK

A door may not latch even though the lock turns freely when the strike plate or latch bolt is misaligned. Changes in weather, humidity, or building settlement can shift the door frame slightly, preventing the bolt from fully entering its hole. Over time, paint buildup or a loose hinge can also block proper engagement. If the latch only catches partially or the door needs a hard push to lock, alignment is likely the issue.