Referential opacity occurs when a term or expression does not retain its reference in certain contexts, especially when substitution of co-referential terms changes the truth value of a statement. This phenomenon highlights the complexities of meaning and reference in language, particularly in relation to definite descriptions and how they interact with propositional attitudes.