In WordPress, Spam refers to unsolicited user contents. In WordPress, spams are usually found in comments, contact forms, user registration, and some other ways.
Usually, spam contains excessive links that direct to illegal or adult websites that may also contain malware. You can prevent your WordPress site from these spamming by using Anti-spam plugin.