The hamstrings: which muscles they include
The hamstrings are three muscles: the biceps femoris, the semitendinosus and the semimembranosus. They have two jobs: they bend the knee and extend the hip, meaning they move the leg back and help you stand up from a hinge.
That is why the hamstrings need two kinds of exercises: hip hinges (Romanian deadlift, good morning), where the muscles work in a stretched position, and machine leg curls, where the knee does the main work. Together they train the muscles more completely than either type alone.