What is electrical "ground" actually connected to?

So in your 3 prong plug, there's a ground connection. Where does this wire actually go? Does it go back to the electric company? Into the Earth beneath your house? Do they like shove a pole down into the dirt? etc.
5 answers 5