A molecule is nearly all empty space, apart from the extremely dense nuclei of its atoms and the clouds of electrons that bond them together. When that molecule forms, it arranges itself to maximise attraction of opposite charges and minimise repulsion of unlike.