Here he mentions the mystery of the passion, in virtue of which baptism has its efficacy: "We who have been baptized into Christ Jesus, have been baptized into his death" (Rom 6:3). And with regard to this he does three things. First, he gives a symbol for the passion. Secondly, the manner of the passion. Thirdly, the fruit of the passion.
He takes the symbol from the old law, in order to adapt to the understanding of Nicodemus; so he says, Just as Moses lifted up the serpent in the desert. This refers to Numbers (21:5) when the Lord, faced with the Jewish people saying, "We are sick of this ...useless food," sent serpents to punish them; and when the people came to Moses and he interceded with the Lord, the Lord commanded that for a remedy they make a serpent of bronze; and this was to serve both as a remedy against those serpents and as a symbol of the Lord's passion. Hence it says that this bronze serpent was lifted up as a sign (Nm 21:9).
Now it is characteristic of serpents that they are poisonous, but not so the serpent of bronze, although it was a symbol of a poisonous serpent. So, too, Christ did not have sin, which is also a poison: "Sin, when it is fully developed, brings forth death" (Jas 1:15); but he had the likeness of sin: "God sent his own Son, in the likeness of sinful flesh" (Rom 8:3). And thus Christ had the effect of the serpent against the insurgence of inflamed concupiscences.
He shows the manner of the passion when he says, so must the Son of Man be lifted up: and this refers to the lifting up of the cross. So below (12:34) when it says, "The Son of Man must be lifted up," it also has, "He said this to indicate the manner of his death."
He willed to die lifted up, first of all, to cleanse the heavens: for since he had cleansed the things on earth by the sanctity of his life, the things of the air were left to be cleansed by his death: "through him he should reconcile all things to himself, whether on earth or in the heavens, making peace through his blood" (Col 1:20). Secondly, to triumph over the demons who prepare for war in the air: "the prince of the power of the air" (Eph 2:2). Thirdly, he wished to die lifted up to draw our hearts to himself: "I, if I am lifted up from the earth, will draw all to myself" (below 12:32). And fourthly, because in the death of the cross he was lifted up in the sense that there he triumphed over his enemies; so it is not called a death, but a lifting up: "He will drink from the stream on the way, therefore he will lift up his head" (Ps 109:7). Fifthly, he willed to die lifted up because the cross was the reason for his being lifted up, i.e., exalted: "He became obedient to the Father even to death, the death of the cross; on account of which God has exalted him" (Phil 2:8).
Source: Commentary on John