A social dilemma is a situation in which individual interests conflict with collective interests, leading to suboptimal outcomes for the group as a whole. It arises when people's self-interested choices result in consequences that are detrimental to the larger community or society.