One of the main issues that SPF flattening addresses is the DNS lookup limit. The SPF specification allows a maximum of 10 DNS lookups per SPF record. Exceeding this limit can cause SPF checks to fail, leading to email delivery issues. Flattening the SPF record ensures that the number of DNS lookups stays within this limit.