The earth pin is the third pin, which is dedicated to grounding the electrical device for safety purposes. It provides a path for electrical faults, such as short circuits or leakage currents, to safely dissipate into the ground, reducing the risk of electrical shock or fires. The earth pin is typically longer and thicker than the live and neutral pins.