Simplistically, suppose you and an accomplice commit a crime. Suppose you get caught, you both get taken to the police station (into separate rooms) and the police say
Do you sign a confession (defect) or not sign (cooperate)? Some thought reveals that yes, it is logical to sign the confession even though both of you following the logic ensures that you both do more time than you would if you had not.
The problem is interesting because of its variations. All variations involve some number of people, each who has a choice of defection or cooperation.
Clearly if everyone cooperates (puts all their money into the pool) they all double their money, but each individual maximizes their personal money by defecting (keeping their money, and still getting a share of all the money which is pooled by the others).
The prisoners dilemma game gives insights into the failures of communism, the tragedy of the commons, conspiracy theories and so on.