Electrons strive for the lowest energy state, which drives the formation of chemical bonds between atoms. When atoms approach each other, electrons can transition to lower energy orbitals, creating a mutual attraction between the positively charged nuclei and the negatively charged electrons. This interaction often results in the formation of ions, leading to electromagnetic attractions that bind the atoms together.