Electronic configurations with a duplet or octet structure have the greatest stability. Most atoms of elements do not have a stable electronic configuration. Thus, they transfer, receive or share electrons with/to other atoms in order to achieve a stable electronic configuration.