Wetting and contact angle hysteresis on chemically patterned surfaces in two dimensionsare analyzed from a stationary phase-field model for immiscible two phase fluids. We first study the sharp-interface limit of the model by the method of matched asymptotic expansions. We then justify the results rigorously by the γ-convergence theory for the related variational problem and study the properties of the limiting minimizers. The results also provide a clear geometric picture of the equilibrium configuration of the interface. This enables us to explicitly calculate the total surface energy for the two phase systems on chemically patterned surfaces with simple geometries, namely the two phase flow in a channel and the drop spreading. By considering the quasi-staticmotion of the interface described by the change of volume (or volume fraction), we can follow the change-of-energy landscape which also reveals the mechanism for the stick-slip motion of the interface and contact angle hysteresis on the chemically patterned surfaces. As the interface passes throughpatterned surfaces, we observe not only stick-slip of the interface and switching of the contact angles but also the hysteresis of contact point and contact angle. Furthermore, as the size of the patternde creases to zero, the stick-slip becomes weaker but the hysteresis becomes stronger in the sense that one observes either the advancing contact angle or the receding contact angle (when the interface ismoving in the opposite direction) without the switching in between. © 2011 Society for Industrial and Applied Mathematics.