When shaken, sand and other granular materials can form into a variety of patterns — squares, stripes and hexagons, for instance — depending on a variety of factors. The dynamics of this behaviour are poorly understood, but a new and quite simple model has been formulated that reproduces the patterns. Moreover it predicts that a particular arrangement, composed of isosceles triangles and not yet seen in experiments, should exist under certain circumstances.