We study the gauge invariance of the massive modes in the compactification of gauge theories from D=5 to D=4. We deal with Abelian gauge theories of rank one and two, and with non-Abelian ones of rank one. We show that St\"uckelberg fields naturally appear in the compactification mechanism, contrarily to... Show more