For example if you want to straighten your leg at the knee, the brain orders your quadriceps muscle, the muscle located in the front of the thigh, to tighten. At the same time, it orders your hamstring, the muscle in the back of the thigh to relax.