If you bought your phone new from a wireless service provider, the Wireless Code requires that it come unlocked. Usually, that requirement means that the phone will be unlocked when it is sold to you.  Sometimes, older phones will still be locked. In that case, the service provider will provide you with an unlock code and instructions so you can unlock the phone yourself for free. If you bought your phone used or from a third-party, such as from an online marketplace, make sure that the seller unlocks it first. Sometimes service providers may not unlock a phone at no charge if they cannot contact the original owner.