Atoms form bonds by sharing or transferring electrons between each other. When one atom donates electrons to another, the first atom becomes positively charged while the second becomes negatively charged, causing them to remain bonded together. Atoms also bond when they share electrons more equally between each other.