Answer. Octet rule is Having 8 electrons in the valance shell of an atom. All the elements (atoms) complete their octet to gain stability either losing or gaining electrons or by sharing of electrons.
Carbon atom consists of 4 electrons in its valence shell. It completes its octet by sharing of its 4 electrons with other atoms. So that it gains stability