The biomimetic fabrication of Nepenthes as a new class of liquid-repellent surface materials has attracted much attention recently, but there still remains big challenges, for example, short-serving life, instability, and so forth. Herein, we develop a novel strategy to fabricate robust slippery liquid-repellent coating by the synthesis and use of silicon oil-contained ultraviolet-responsive microcapsules. Owing to the physical and chemical inertness of silicon oil and the substantial randomly dispersed microcapsules in the coating, this nepenthes-like liquid-repellent coating can not only endure different harsh environments but also have excellent long-term self-healing functions.