He boxed her in so she could not get away from him.
They tried to box in the animals, but they needed more space.
Don't try to box me in.