To obtain an affidavit, you need to draft a written statement that outlines the facts you wish to attest to. This document must be signed in the presence of a notary public or another authorized official who can administer oaths. Once signed and notarized, the affidavit becomes a legal document that can be used in court or for other official purposes. Make sure to include all relevant details and ensure the affidavit complies with local laws and regulations.