The muscle on the side of your leg is called the sartorius. This muscle is responsible for a number of functions, including hip flexion, knee extension, and ankle dorsiflexion. The sartorius is one of the longest muscles in the human body, stretching from the upper thigh all the way down to the lower leg. This muscle is often used in sports such as running and soccer, as well as in activities such as ballet and yoga.