Kapbeta2 (also called transportin) recognizes PY nuclear localization signal (NLS), a new class of NLS with a R/H/Kx((2-5))PY motif. Here we show that Kapbeta2 complexes containing hydrophobic and basic PY-NLSs, as classified by the composition of an additional N-terminal motif, converge in structure only at consensus motifs, which explains ligand diversity. On the basis of these data and complementary biochemical analyses, we designed a Kapbeta2-specific nuclear import inhibitor, M9M.