How to unlock your AT&T phone for free

Under what circumstances do you need to unlock your AT&T phone? Have you met the situation when you newly…