When a drug is administered to the cell and appears in proximity to a specific protein, it interacts with it by forming chemical bonds.
An active molecule must adopt a specific shape to bind to a protein stably. If a molecule cannot bind to the active site of the protein well, it can't be considered a drug candidate.