From microbial biofilm communities to multicellular organisms, 3D macroscopic structures develop through poorly understood interplay between cellular processes and mechanical forces. Investigating wrinkled biofilms of Bacillus subtilis, we discovered a pattern of localized cell death that spatially focuses mechanical forces, and thereby initiates wrinkle formation. Deletion of genes implicated in biofilm development, together with mathematical modeling, revealed that ECM production underlies the localization of cell death. Simultaneously with cell death, we quantitatively measured mechanical stiffness and movement in WT and mutant biofilms. Results suggest that localized cell death provides an outlet for lateral compressive forces, thereby promoting vertical mechanical buckling, which subsequently leads to wrinkle formation. Guided by these findings, we were able to generate artificial wrinkle patterns within biofilms. Formation of 3D structures facilitated by cell death may underlie self-organization in other developmental systems, and could enable engineering of macroscopic structures from cell populations.