Scope ambiguity occurs when a sentence can be interpreted in more than one way due to the different possible scopes of its components, such as quantifiers or negations. This ambiguity arises when the meaning of the sentence changes based on which part is interpreted first, affecting how the overall sentence is understood in a formal semantic analysis.