Which of the following must happen in order for atoms to bond either ionically or covalently with one another?

In order for atoms to bond either ionically or covalently with one another, they must share or transfer electrons.