An affidavit is a written statement of facts that a person voluntarily signs and swears is true before an authorized official, such as a notary public or magistrate. It carries the same legal weight as giving spoken testimony under oath in a courtroom.