The present invention provides a sidewall oxygen diffusion barrier and a method
for fabricating the sidewall oxygen diffusion barrier that reduces the diffusion
of oxygen into contact plugs during a CW hole reactive ion etch of a ferroelectric
capacitor of an FeRAM device. In one embodiment the sidewall barrier is formed
from a substrate fence. In another embodiment, the sidewall barrier is formed by
etching back an oxygen barrier.