Two-factor authentication (2FA) is a security measure that requires two forms of identification to access an account or device. This could for example be a code that is sent to your phone by text or an app. It adds an extra layer of protection to prevent unauthorized access.