White hat SEO refers to ethical practices that comply with search engine guidelines to improve website rankings. Black hat SEO involves using manipulative and unethical techniques that violate search engine guidelines and can result in penalties or bans.