Rationalization is a defense mechanism in which an individual explains their behavior or an event in a rational or logical manner, even though the real reasons may be quite different. It is a way of justifying one's actions or beliefs to oneself or others, often to avoid the true, and potentially unpleasant, motivations behind them.