Homonyms are words that share the same spelling or pronunciation but have different meanings. For example, the word "bat" can refer to a flying mammal or a piece of sports equipment used in Baseball. Homonyms can create confusion in language but also add richness to wordplay and poetry. They are often categorized into homographs (same spelling) and homophones (same pronunciation).