Two-factor authentication (2FA) enhances online account security by requiring a second form of verification in addition to a password. To enable 2FA on Instagram, users should: open the app, go to their profile, tap the menu icon, select "Settings," navigate to "Security," and choose "Two-Factor Authentication." Users can receive verification codes via text message or an authentication app. This measure helps protect accounts even if a password is compromised.