Millipedes are arthropods that have two pairs of legs per segment (except for the first segment behind the head which does not have any appendages at all, and the next few which only have one pair of legs). Each segment that has two pairs of legs is a result of two single segments fused together as one. Most millipedes have very elongated cylindrical bodies, although some are flattened dorso-ventrally, while pill millipedes are shorter and can roll into a ball, like a pillbug.