# Crystal structure vs melting point

Calcium oxide has a melting point of $\ce{2700^\circ C}$ and sodium chloride has a melting point of $\pu{801^\circ C}$.

If they have the same crystal structure and ions are about the same distance in each crystal, why is there such a big difference?