What is nucleophilic substitution reaction?

A nucleophile attacks an electrophilic site and replaces a leaving group. e.g. OH- attacks R-Br to give R-OH.