4d printing is an emerging fabrication technology that enables 3d printed structures to change configuration over “time” in response to an environmental stimulus. compared with other soft active materials used for 4d printing, shape-memory polymers (smps) have higher stiffness, and are compatible with various 3d printing technologies. among them, ultraviolet (uv)-curable smps are compatible with digital light processing (dlp)-based 3d printing to fabricate smp-based structures with complex geometry and high-resolution. however, uv-curable smps have limitations in terms of mechanical performance, which significantly constrains their application ranges. here, a mechanically robust and uv-curable smp system is reported, which is highly deformable, fatigue resistant, and compatible with dlp-based 3d printing, to fabricate high-resolution (up to 2 µm), highly complex 3d structures that exhibit large shape change (up to 1240%) upon heating. more importantly, the developed smp system exhibits excellent fatigue resistance and can be repeatedly loaded more than 10 000 times. the development of the mechanically robust and uv-curable smps significantly improves the mechanical performance of the smp-based 4d printing structures, which allows them to be applied to engineering applications such as aerospace, smart furniture, and soft robots.