what type of figurative Language is and why

The sun was shining with all his might

The statement "The sun was shining with all his might" is an example of personification. Personification is a type of figurative language that gives human attributes or qualities to non-human entities or objects. In this case, the sun is being described as if it has the ability to exert effort or strength, as if it has human-like qualities.