In three-prong plugs, the third prong is designed as the earth path or ground connection. Its main function is to provide a safe path for electric current to the ground in case of a fault, preventing electric shocks and protecting users from electrical hazards. The other two prongs are for the phase (live) and neutral connections.