Form 8802, Application for United States Residency Certification is used to request a certificate of residency, Form 6166, that residents of the United States may need to claim income tax treaty benefits and certain other tax benefits in foreign countries.