When you put extra pressure or do a wrong manoeuvre, these muscles get strained or worse, tear, causing immense pain in the area. Jumping, running or stretching incorrectly can all cause hamstring pulls. Other reasons include skipping your warm up routine before you start exercising or if you have weak glutes.
While mellow hamstring pulls heal on their own in a few days and don't cause you much pain, harsh strains can cause excruciating pain, making even regular, daily tasks difficult to complete. Even walking becomes painful. So, if you feel pain, pull, tug or a snap while you're exercising, stop immediately and check yourself for possible injuries.
Time is the best healer when it comes to hamstring injuries. Make sure that you give yourself adequate rest and avoid putting pressure on your legs — keeping them upright also helps. Make sure that you regularly apply ice to the affected area — ice works wonders in giving you relief from the pain.
Take painkillers if the pain is unbearable but don't self-medicate. Ask your doctor to prescribe the suitable medication. You could also compress your leg by tying a tight piece of cloth around your leg. Try and stretch your legs every now and then without straining yourself.