You searched for: “allegory
allegory
A story in which the people, the objects, and the events are symbols that have other meanings.

"George Orwell's Animal Farm novel is an allegory in which animals behave and talk like humans."