Wash them in cold water with a mild detergent on a gentle cycle to prevent shrinkage and maintain elasticity. Avoid using fabric softeners, which can reduce moisture-wicking properties. After washing, air dry them flat or hanging to preserve their shape and avoid heat damage from the dryer. Skip ironing, as leggings typically don't need it, and store them folded or flat to prevent stretching.