The world needs a new source of energy, an unspillable source.

How does geothermal energy get the electricity?? Ten points!!!!!!!!!!!!!!!?

I am writing a paper and I can’t figure out how the geothermal energy gets the electricty and what the steps are to getting it. If anyone knows please explain it to me. :)