The potential energy of a bond

Two atoms attract as they approach until their nuclei start to repel, so their potential energy has a minimum at the bond length, whose depth is the bond energy, and by Coulomb's law smaller, more highly charged ions bond more strongly.

From General Chemistry.