Etymology
Today it means: To shut up or enclose, as in a pen. Full definition →
From im- + pen.
Etymology from Wiktionary, CC BY-SA 4.0.