A novel method for diffusing volatile impurities (such as Zn) in III-V compounds has been developed. The apparatus described here maintains an appropriate vapor pressure of Zn in a localized and confined manner in close proximity over the III-V compound wafer. This technique is used for diffusing Zn in InP.