Hot glue guns work by heating up a glue stick until it melts, then applying the liquid adhesive through a nozzle onto the surface to be bonded. The heat is generated by a heating element in the gun's nozzle or barrel. Hot glue guns are quick and effective for bonding a variety of materials, but safety precautions should always be taken to prevent burns or injuries.