The reaction most often occurs at an aliphatic sp3 carbon center with an electronegative, stable leaving group attached to it (often denoted X), which is frequently a halide atom.
SN2 attack occurs if the backside route of attack is not sterically hindered by substituents on the substrate.