We propose a phase eld model for simulating solid-state dewetting and the morphological evolution of patterned islands on a substrate. The evolution is governed by the Cahn–Hilliard equation with degenerate mobility. The proposed approach easily deals with the complex boundary conditions arising in the solid-state dewetting problem.