To unlock an iPhone from a carrier manually, you need to:

1. Contact your carrier and request an unlock. You may need to provide your account information and your device's IMEI number.
2. Back up your iPhone on iTunes or iCloud.
3. If you have a SIM card from another carrier, shut down your phone and insert the SIM card.
4. If you do not have a SIM card from another carrier, erase your iPhone by resetting it to factory settings.
5. Power on your phone and follow the setup instructions. Your iPhone should be unlocked.

There are also software and online services that can help you unlock your iPhone. However, it is important to note that unlocking your iPhone may void its warranty and that it is illegal in some countries.

: [Apple Support](https://support.apple.com/en-us/HT201328)
: [Wikipedia](https://en.wikipedia.org/wiki/SIM_lock)
: [iToolab](https://itoolab.com/unlock-sim/how-to-unlock-iphone-to-any-carrier/)