Ancient sea fossils reveal that millipede and centipede ancestors evolved their many legs while underwater. The discovery solves a long-standing mystery about myriapod leg evolution.