The main function of your hamstrings is to bend your knees which we do daily whenever we perform activities such as walking, running, climbing stairs and jumping. You can also think of your hamstrings like brakes on a car which slows your speed so you can swing your leg forward while kicking or running.