SPF and DKIM are two pillars of email authentication that fight spoofing in different ways. SPF (Sender Policy Framework) is a DNS record listing which mail servers are allowed to send for your domain. DKIM (DomainKeys Identified Mail) attaches a cryptographic signature to each message proving it wasn't altered and really came from your domain.
Neither is sufficient alone. SPF checks the sending server; DKIM checks the message itself. Together they give receiving servers two independent ways to trust your mail - and they're the foundation DMARC builds on.
