The lock-and-key picture
The classic way to picture binding is lock and key: the protein's pocket is the lock, the drug is the key, and only a key of the right shape fits. This captures the most important idea in molecular recognition — shape complementarity. The bumps of the drug should fill the hollows of the pocket, and the hollows of the drug should leave room for the pocket's bumps. Where shapes clash, the molecule is pushed away; where they nest, it can settle.
Lock and key also hints at why drugs are selective. A key cut for one lock usually won't open a different lock. Likewise, a molecule shaped for one pocket usually fits poorly into the differently shaped pockets of other proteins — so it binds them weakly, if at all.
Why the simple picture breaks
A real lock is rigid metal. A protein is not — it wiggles and breathes constantly. This conformational flexibility means the pocket isn't a fixed shape waiting to be matched; it's a soft, shifting cavity that can rearrange when something approaches. So the rigid lock-and-key image is only half the story.
The better picture is induced fit. As the drug approaches, both partners adjust: the pocket may open, close, or twist a side chain out of the way, while the drug may rotate its own flexible bonds to present a better face. The final fit is one they reach together — less like a rigid key clicking home, more like two hands finding a comfortable grip.
What the chemist actually keeps
Because the pocket flexes, what really matters isn't matching every wall of the cavity — it's placing a handful of key contact features in the right spots. That essential arrangement of features (a positive group here, a ring there, a hydrogen-bonding group at a set distance) is the pharmacophore: the minimal pattern a molecule needs to be recognized. Two chemically different drugs can hit the same target if they each carry the same pharmacophore.
This is also why modern design leans on a protein's actual 3D structure. With a real picture of the pocket, structure-based drug design lets chemists see where the walls are, where they flex, and where a new group could reach a fresh contact — turning the vague "make it fit" into a concrete plan.