Nouns ending in -ège are masculine.
Is piège masculine or feminine?
lepiège
The rule behind it
100% of -ège nouns are masculine
In context
Il pensa que c'était peut-être un piège.
He thought maybe this was a trick.
Ils ont attrapé le renard avec un piège.
They caught the fox with a trap.
J'ai mis le piège entre les branches.
I put the trap between the branches.