Events tell the computer when to run a code or a program. It is usually triggered by the user inputs.