Spam filtering is a process used to identify and block unsolicited or unwanted email messages, commonly known as spam. Spam filters analyze incoming emails based on various criteria, such as sender reputation, content, and other factors, to determine whether they are legitimate or spam. Emails identified as spam are typically diverted to a separate folder or automatically deleted to prevent them from reaching the user’s inbox.