To enable two-factor authentication for your iCloud account, go to the “Security” section of your Apple ID account page and follow the instructions.