What determines an atoms chemical properties?

The chemical behavior of an atom depends mostly on the number of electrons in its outermost shell.