personification

A description of an inanimate object as though it were a person or living thing (for example, ‘the last chance he had, just walked out the door’).