A covalent bond is formed between two non-metal atoms by sharing a pair of electrons in order to fill the outer shell.