The main difference between a three-pronged plug and a two-pronged plug is the grounding wire. A three-pronged plug includes a grounding wire, which provides an additional path for electrical current to safely dissipate in case of a fault, reducing the risk of electrical shock. In contrast, a two-pronged plug does not have a grounding wire, which may pose a higher risk, especially in older homes or with certain appliances.