Earthing creates an alternative path for flow of excessive currents safely into the ground in presence of minimal resistance or…