Nucleophiles which can attack through the different nucleophilic centres present in it are called ambident nucleophiles. For example, cyanide group is resonance hybrid of the following two contributing structures:

It can attack through carbon to form cyanide and through N to form isocyanide.