An element from Group 2 will form ionic bonds with a nonmetal, Groups 13-17
Step-by-step explanation:
An ionic bond is formed between a "metal and non-metal". The valence electrons are lost in one and gained in the other atom. It involves electrostatic forces between the two ions which are of opposite charges.
When one atom(metal) losses an electron, it becomes a "positive ion". Similarly, when the other atom(non-metal) gains an electron it becomes a negative ion. For example: The formation of NaF(Sodium Fluoride).