An iPhone passcode will let you wipe data, restore factory settings, and give your device an extra layer of security. Entering the wrong passcode several times can have your iPhone disabled.