Scientists and engineers are fascinated by self-folding structures. Imagine the possibilities: heart stents that unfold in the right location or pop-up tents that assemble at the press of a button, as well as nanoscale versions for tiny machines. But sometimes these structures get stuck during the folding process, and scientists don’t know why.