What is the purpose of spam filters? Spam filters are used to identify and block unwanted or harmful emails, such as phishing or commercial spam, before they reach the user's mailbox.