The valency of atoms can be zero when:
All of these.
Valency is combing capacity of an atom. When the atom has completely filled outermost orbit (as in case of noble gases), it is stable by itself and doesn't react. So combining capacity that is, valency is zero.