A mathematical model for the explanation of OH masers in regions of star fo
rmation is presented. The model is based on the assumption that grains of d
ifferent sizes are present at the border of the HII regions where they are
exposed to the heat- and VUV-flux of a new born star. The grains evaporate
water because of the heat flux from the central star. The subsequent dissoc
iation of water by VUV together with IR relaxation generates a high OH abun
dance and yields strong inversion in the OH Lambda-doublets for all maser t
ransitions observed in star forming regions. The gain of the observed maser
s is determined as a function of the photodissociation rates for different
evaporation rates. In this first. approach IR pumping and collisions are ne
glected although they may change the quantitative predictions. The results
show that gain may be high enough to explain all observed masers near new:
born stars under reasonable assumptions for the astrophysical conditions fo
und at the border of HII regions. Based on the model predictions are made c
oncerning intensities, locations and variability of the different maser tra
nsitions.