Programmed deformations are widespread in nature, providinge legantp aradigms to design self-morphing materials with promising applications in biomedical devices, flexible electronics, soft robotics, etc. In this emerging field, hydrogels are an ideal materialt oi nvestigate the deformation principle and the structure-deformation relationship. One crucial step is to construct heterogeneouss tructures in af acile yet effective way.H erein, we provide af ocus review on different deformation modes and corresponding structural features of hydrogels. Photolithography is av ersatile approach to control the outer shape of the hydrogel and spatiald istribution of the component in the hydrogel, endowing the patterned hydrogels with programmed internal stress and thus controllable deformations. Specifically, cooperative deformations take place in periodically patterned hydrogelsw ith in-plane gradients, and multiple morphing structures are formed in one patternedh ydrogel using selective preswelling to directt he buckling of each unit. The structuralc ontrol strategy and deformation principles should be applicable to other materials with broad applications in diverseareas.