Quasi-symmetry of a steady magnetic field means integrability of first-order guiding-centre motion. Here we derive many restrictions on the possibilities for a quasi-symmetry. We also derive an analogue of the Grad-Shafranov equation for the flux function in a quasi-symmetric magnetohydrostatic field.