How to stop hamstring pain when cycling | How to build strength in hamstrings

What are hamstrings? How do they work? And how to stop hamstrings hurting when cycling