Two-Factor Authentication (2FA) is an extra layer of security used to ensure the security of online accounts beyond just a username and password. It requires users to confirm their identity using a second factor, such as a unique code from a smartphone app.