The development of selective ubiquitin-specific protease-7 (USP7) inhibitors GNE-6640 and GNE-6776, which induce tumour cell death and reveal differential kinetics of Lys-48 and Lys-63-linked ubiquitin chain depolymerization by USP7. Deubiquitinating enzymes remove the small modifier protein ubiquitin from target substrates regulating their stability. One such enzyme, USP7, is a potential target for anti-cancer therapy, as its inhibition would result in the degradation of the ubiquitinated oncoprotein MDM2, leading to reactivation of the tumour suppressor protein p53. However, selective inhibitors of USP7 have remained elusive. Here, Ingrid Wertz and team develop two USP7 inhibitors, providing structural insights into the mode of action of these compounds and demonstrating their toxicity towards tumour cells. Elsewhere in this issue, David Komander and colleagues independently report the identification of two small molecules that inhibit USP7 with high affinity and specificity both in vitro and within cells, also demonstrating their ability to inhibit tumour growth. The ubiquitin system regulates essential cellular processes in eukaryotes. Ubiquitin is ligated to substrate proteins as monomers or chains and the topology of ubiquitin modifications regulates substrate interactions with specific proteins. Thus ubiquitination directs a variety of substrate fates including proteasomal degradation1. Deubiquitinase enzymes cleave ubiquitin from substrates and are implicated in disease2; for example, ubiquitin-specific protease-7 (USP7) regulates stability of the p53 tumour suppressor and other proteins critical for tumour cell survival3. However, developing selective deubiquitinase inhibitors has been challenging4 and no co-crystal structures have been solved with small-molecule inhibitors. Here, using nuclear magnetic resonance-based screening and structure-based design, we describe the development of selective USP7 inhibitors GNE-6640 and GNE-6776. These compounds induce tumour cell death and enhance cytotoxicity with chemotherapeutic agents and targeted compounds, including PIM kinase inhibitors. Structural studies reveal that GNE-6640 and GNE-6776 non-covalently target USP7 12 Å distant from the catalytic cysteine. The compounds attenuate ubiquitin binding and thus inhibit USP7 deubiquitinase activity. GNE-6640 and GNE-6776 interact with acidic residues that mediate hydrogen-bond interactions with the ubiquitin Lys48 side chain5, suggesting that USP7 preferentially interacts with and cleaves ubiquitin moieties that have free Lys48 side chains. We investigated this idea by engineering di-ubiquitin chains containing differential proximal and distal isotopic labels and measuring USP7 binding by nuclear magnetic resonance. This preferential binding protracted the depolymerization kinetics of Lys48-linked ubiquitin chains relative to Lys63-linked chains. In summary, engineering compounds that inhibit USP7 activity by attenuating ubiquitin binding suggests opportunities for developing other deubiquitinase inhibitors and may be a strategy more broadly applicable to inhibiting proteins that require ubiquitin binding for full functional activity.