Selectivity in nucleophilic attack refers to the preference of a nucleophile to react with a specific electrophile or a specific site within a molecule over others. This concept is crucial in organic synthesis, where the outcomes of reactions depend heavily on the chosen nucleophile and the electrophilic centers present in substrates. Selectivity influences product formation, yielding desired compounds while minimizing side reactions and byproducts.