The squash aspartic acid proteinase inhibitor (SQAPI), a proteinaceous proteinase inhibitor from squash, is an effective inhibitor of a range of aspartic proteinases. Proteinaceous aspartic proteinase inhibitors are rare in nature. The only other example in plants probably evolved from a precursor serine proteinase inhibitor. Earlier work based on sequence homology modeling suggested SQAPI evolved from an ancestral cystatin. In this work, we determined the solution structure of SQAPI usingNMRand show that SQAPI shares the same fold as a plant cystatin. The structure is characterized by a four-strand antiparallel β-sheet gripping an α-helix in an analogous manner to fingers of a hand gripping a tennis racquet. Truncation and site-specific mutagenesis revealed that the unstructured N terminus and the loop connecting β-strands 1 and 2 are important for pepsin inhibition, but the loop connecting strands 3 and 4 is not. Using ambiguous restraints based on the mutagenesis results, SQAPI was then docked computationally to pepsin. The resulting model places the N-terminal strand of SQAPI in the S' side of the substrate binding cleft, whereas the first SQAPI loop binds on the S side of the cleft. The backbone of SQAPI does not interact with the pepsin catalytic Asp32-Asp215 diad, thus avoiding cleavage. The data show that SQAPI does share homologous structural elements with cystatin and appears to retain a similar protease inhibitory mechanism despite its different target. This strongly supports our hypothesis that SQAPI evolved from an ancestral cystatin.