Homonymy occurs when two or more words share the same spelling or pronunciation but have different meanings, often leading to ambiguity in language. It is a linguistic phenomenon that can be categorized into homophones, homographs, and homonyms, each with unique characteristics depending on their phonetic or orthographic similarities.