Two-factor authentication is a security measure that makes you pass two security tests before gaining access to your account or device.
You can enable two-factor authentication on Google to provide an added layer of security if, for example, your password is compromised.