The Earth's atmosphere and surface are part of a global electrical circuit. The Earth generally holds a net negative charge relative to the ionosphere. Maintaining this charge balance requires continuous replenishment.
The predominant mechanism responsible for maintaining the Earth's negative charge is the massive downward flow of charge during atmospheric electrical events.
Cloud to ground lightning discharges are the primary contributors. These discharges transfer significant negative charge accumulated in thunderclouds directly to the Earth's surface, replenishing its negative charge.
Thus, cloud to ground lightning discharges are the most critical factor for the Earth's predominant negative charge in the global electrical circuit.
The sequence of events in a cloud to ground electrical discharge is

The above cartoon exhibits a cloud during the mature stage of development of a simple convective thunderstorm. The simplest charge structure sequence in boxes. A, B, C, respectively, can be depicted as follows. Positive charges are shown as +++ and negative charges ---