We are spiritual beings trapped in material bodies in a material world which is full of suffering. Our goal is therefore to discover our true spiritual nature and return to the spiritual realm through being mindful of the supreme spirit.
Some other Gnostic traditions alternately describe us as light trapped in darkness, either way what the teachings actually mean is we are divine beings lost in delusion. Sleeping beings lost in our dreams needing to wake up.
Waking up is an act of grace given to us by the supreme.
When the time comes for our liberation our consciousness refocuses inwards on the spiritual reality rather than outwards on the illusionary material world.