Ambiguity should not be confused with vagueness, in which a word or phrase has one meaning whose boundaries are not sharply defined.
In addition to words with multiple senses, ambiguity can be caused by syntax. "He ate the cookies on the couch", for example, could mean that he ate those cookies which were on the couch (as opposed to those that were on the table), or it could mean that he was sitting on the couch when he ate the cookies. Spoken language can also contain lexical ambiguities, where there is more than one way to break up a set of sounds into words, for example "ice cream" and "I scream". This is rarely a problem due to the use of context. (For more information, see Syntactic ambiguity.)
Philosophers (and other users of logic) spend a lot of time and effort searching for and removing ambiguity in arguments, because it can lead to incorrect conclusions and can be used to deliberately conceal bad arguments. For example, a politician might say "I oppose taxes which hinder economic growth". Some will think he opposes taxes in general because they hinder economic growth; others will think he only opposes those taxes that he believes will hinder economic growth. The politician hopes that each will interpret the statement in the way he wants, and both will think the politician is on his side. The logical fallacies of amphiboly and equivocation also rely on the use of ambiguous words and phrases.
In literature and rhetoric, on the other hand, ambiguity can be a useful tool. Groucho Marx's classic joke depends on a grammatical ambiguity for its humor, for example: Last night I shot an elephant in my pajamas. What he was doing in my pajamas I'll never know. Songs and poetry often rely on ambiguous words for artistic effect, as in the song title "Don't It Make My Brown Eyes Blue" (where "blue" can refer to the color, or to sadness).
See also imprecise language, logical fallacy, semantics.