Because piriformis syndrome is usually caused by sports or movement that repeatedly stresses the piriformis muscle, such as running or lunging, prevention is often related to good form. Avoid running or exercising on hills or uneven surfaces. Warm up properly before activity and increase intensity gradually. Use good posture while running, walking, or exercising. If pain occurs, stop the activity and rest until pain subsides. See a health care provider as needed.