What is a lug nut?

This is a lug nut.
What does it do? It keeps this from happening:

The Parable of the lug nut
Once upon a time there was an old man, a grandpa to a bunch of kids who relied on him to keep them entertained. One day, while Grandpa was resting in the early winter sun, smoking his pipe and thinking about some weighty problem (as that was the kind of guy he was), one of the kids ran up to him and cried; “Grandpa! One of your tires has gone flat on your old truck!”
“Oh hell,” thought Grandpa as he went to the barn to get his equipment, which he then loaded onto a wagon and headed down the path to where his old truck was parked. He was followed by a gaggle of kids, who were all keyed up and full of wonder and questions.
“What’s that for? Why is it flat? How will you fix it?” Each question answered with thoughtfulness and patience.
“This is a hydraulic jack that raises the frame up so I can work on the wheel. I don’t know yet why it is flat, but once it’s off I can do the bubble test. First I’ll use that cross-shaped wrench, called a lug wrench, to remove the lug nuts,” He said as he began to jack up the heavy truck.
“Lug nuts? What are lug nuts?” one of the kids asked.
