To confine something is to keep it in one place.
The elephant is confined to a cage in the zoo.
Example picture