To enclose something is to contain it.
The cows in the field were enclosed by a fence.
Example picture