Contract ambiguity arises when the language in a contract can be interpreted in more than one way, leading to potential disputes between parties. Courts often resolve these ambiguities by examining the intent of the parties, considering extrinsic evidence, and applying principles like contra proferentem, which construes any ambiguity against the drafter of the contract.