Cloaking is tricking Google so it sees different content (eg more/differently optimized) on your website than search engines do.
Cloaking is something that is very unlikely to happen by accident, so it's not something you need to figure out how to avoid.