Dystonia is a disorder that affects the way the body moves. It causes the muscles to contract, which makes them move involuntarily or get stuck in an abnormal position. Dystonia can affect the entire body or a certain part, and the movements can sometimes cause pain.