Elements in the same group have the same number of electrons in their outer shell.

This is why elements from the same group have similar properties.