Carbon is tetravalent. The electronic configuration of carbon is 2, 4. It has four electrons in its valence shell. So, it has a tendency to share four more electrons to attain the octet configuration.