The inhibitor of apoptosis protein DIAP1 suppresses apoptosis in Drosophila, with the second BIR domain (BIR2) playing an important role. Three proteins, Hid, Grim, and Reaper, promote apoptosis, in part by binding to DIAP1 through their conserved N-terminal sequences. The crystal structures of DIAP1-BIR2 by itself and in complex with the N-terminal peptides from Hid and Grim reveal that these peptides bind a surface groove on DIAP1, with the first four amino acids mimicking the binding of the Smac tetrapeptide to XIAP. The next 3 residues also contribute to binding through hydrophobic interactions. Interestingly, peptide binding induces the formation of an additional alpha helix in DIAP1. Our study reveals the structural conservation and diversity necessary for the binding of IAPs by the Drosophila Hid/Grim/Reaper and the mammalian Smac proteins.