What are Hamstring muscles? How are the hamstring muscles structured? The three hamstring muscles are: Biceps femoris, closest to the outside of body. The function of this hamstring is to flex the knee, extend the thigh at hip and rotate lower leg from side-to-side when knee is bent. Semimembranosus, closest to the middle of body….