Keyword cannibalization occurs when multiple pages on a website target the same keyword, leading to competition among those pages for ranking. To prevent it, ensure that each page targets unique keywords and has distinct content or consolidate similar content into a single, authoritative page.