Affidavit To Get Green Card

What is an affidavit for immigration?