An affidavit is a written statement of facts that a person swears or affirms is true. It is often used as evidence in court and must be signed in front of someone allowed to witness it, such as a lawyer, notary public, or commissioner of oaths.