(Somebody using) optimization tricks that artificially boost search engines rankings, using methods that usually break the search engines' TOS.
Examples of
blackhat techniques are
cloaking, stuffing pages with keywords or links and using unnatural redirects.
The term was inspired by old western movies' villains always using a
black cowboy hat.