Email was designed without any way of proving who sent a message. Anyone can put your address in the From line. These three records are how that was patched, and between them they decide whether your mail is trusted.
SPF — who is allowed to send
A record listing the servers permitted to send mail for your domain. A receiving server checks the sending address against that list.
The usual mistake is having two SPF records. That is invalid and fails outright — one record, listing every sender, including anything that sends on your behalf: your mail provider, a newsletter tool, a shop, a CRM.
DKIM — proof it was not altered
Your mail server signs each message, and the public half of the key lives in DNS. The receiver checks the signature. If it matches, the message genuinely came from your domain and nothing changed it in transit.
DMARC — what to do when the first two fail
A policy record saying what a receiver should do with mail that fails SPF and DKIM: let it through, treat it as suspicious, or reject it. It also asks for reports, which is how you find out who is sending as you.
Start at p=none and read the reports for a few weeks before tightening. Going straight to p=reject while a forgotten system is still sending as you is how a company stops its own invoices being delivered.
Getting these wrong is one of the two most common reasons legitimate mail lands in spam. If you would like us to look at yours, open a ticket with the domain. Raise a ticket