Computer-based neural networks can learn to do tasks. A new type of material, called a mechanical neural network, applies similar ideas to a physical structure.