Grounding the club means resting the clubhead on the ground behind the ball before you swing.

It's allowed almost everywhere, including in penalty areas since 2019. In a bunker, though, you can't touch the sand right in front of or behind the ball, or with a practice swing; doing so costs two strokes in stroke play or loss of the hole in match play.