Two-factor authentication, or 2FA, is an additional layer of security that decreases the likelihood of an account being hacked. The idea behind it is that logging into a service requires something you know and something you have.