Electrostatic discharge (ESD) occurs when a static electric charge builds up and discharges, potentially damaging computer components during handling. To prevent ESD damage while working inside a computer, one should wear an ESD wrist strap connected to an ESD mat to safely discharge static electricity. It is also important to back up the computer's operating system before installation or repairs in case ESD accidentally wipes data from the system components.