'Confine' can mean 'to limit' or 'to imprison' something. Here are some examples:
'confine as limit':
My dinner choices are confined to vegetarian places because I have stopped eating meat.
'confine as imprison':
Rapunzel was confined in the tower by the greedy witch.
In all cases, 'confine' carries the meaning of limiting freedom. It can be used with physical situations, like prison, or abstract situations like choices, ideas, or opinions.