Simple:
* The ancient ruins were once inhabited by a thriving civilization.
* The forest is inhabited by a variety of wildlife.
* The small village was inhabited by friendly people.
Figurative:
* Her heart was inhabited by a deep sense of longing.
* The melody inhabited her thoughts for days after she heard it.
* Fear inhabited the minds of the refugees.
More complex:
* The remote island, once inhabited by a solitary hermit, is now a popular tourist destination.
* The city, once inhabited by bustling merchants, now stands desolate and forgotten.
* The artist's imagination was inhabited by fantastical creatures and impossible landscapes.
The meaning of "inhabit" depends on the context. It can mean to live in a place, or to be filled or dominated by something, both literal and figurative.