Cloaking is showing different content or urls to users and search engines to manipulate rankings. It is a black hat seo technique because it deceives search engines and users. This leads to a penalty from search engines, resulting in a decrease in rankings or even being banned.