roman à clef

Definition
A literary genre where real persons, places or events are depicted in fictional guise. Examples would be Animal Farm, All the King’s Men, Primary Colours, and Citizen Kane.