If you look at this (rough) diagram. Potential energy is the y axis and distance is the x axis. This is a potential energy curve.
Say you have 2 H atoms you can see when they are far apart they are lower in energy than the H2 molecule. As they get closer together there is a critical point where the two curves intercept. At this point it is lower in energy to become the H2 molecule and follow the curve to its lowest point (the well).
The reason behind this diagram:
At long range distances there attraction between the 2 atoms, due to van der walls forces.
These forces push these molecules together and they then react to form H2 (as it is lower in energy).
The molecule then sits in the potential energy well.
You can see from the diagram that the atoms, when they are in this well, cannot go closer together as the potential energy increases (this is due to short range repulsion).
Once the atoms have bonded they will need significant energy to then break apart (i.e. go back onto the 2H diabatic curve)
(I don't know if this diagram is strictly correct, but the ideas underlying are sound)