We study the collective behavior of swarmalators, generalizations of phase oscillators that both sync and swarm, confined to move on a one-dimensional (1D) ring. This simple model captures the essence of movement in two or three dimensions, but has the benefit of being solvable: most of the collective states and their bifurcations can be specified exactly. The model also captures the behavior of real-world swarmalators which swarm in quasi-1D rings such as bordertaxic vinegar eels and sperm.