Answer:
See explanation
Step-by-step explanation:
The bond between magnesium atoms is a metallic bond while the bond within a crystal of aluminum iodide is an ionic bond.
A metallic crystal consists of a sea of electrons that are electrostatically attracted to positive metal ions. This is the nature of the bonding between magnesium atoms in a crystal of magnesium.
In aluminum iodide, there is a transfer of electrons from aluminium to iodine which is typical of an ionic bond. Electrostatic interaction holds oppositely charged ions together in the crystal of aluminum iodide.