The G-clamp is used to securely hold or press objects together, preventing movement during tasks like cutting, drilling, welding, and gluing. It achieves this by using a threaded screw to apply adjustable pressure, which can hold wood, metal, or other materials firmly in place.