Definition
to confine a person in a location where they cannot or are not permitted to leave
Her parents shut her away for her safety.
During this difficult time, he chose to shut himself away from the world.
They locked the warehouse door, shutting everyone away inside.