Optical microcavities based on zero-aroup-velocity surface modes in photonic crystals are studied. It is shown that high quality factors can be easily for such microcavities in photonic crystals. With increasing of the cavity length, the quality factor is gradually enhanced and the resonant frequency converges to that of the zero-group-velocity surface mode in the photonic crystals. Different with other microcavities mentioned in the literature, microcavities proposed in this paper can be considered as open cavities in the sense that one of the in-plane boundaries is exposed to air.