Your hamstrings consist of two large muscles behind your thighs.
They are engaged when you bend your knee, bringing your heel towards your butt.
They also support your glutes.
The leg curl is the most popular and probably the best exercise to isolate your hamstrings.
The leg curl machine you need to perform this exercise can be a flat bench or one that is raised in the middle. Either type works well.