The utilization of local anesthetics for postoperative analgesia represents an effective approach, but generally suffers from short half-lives and brachychronic local neurotoxicity. A desirable anesthetic with controllable and sustainable drug-releasing performance for adequate analgesia effect is highly required. In this work, the core/shell-structured two-dimenional (2D) silicene nanosheets coated with mesoporous silica layer (abbreviated as Silicene@MSNs) have been rationally constructed as localized drug-delivery system in sciatic nerve block to achieve on-demand release of loaded ropivacaine (RP) in mesoporous silica layer for local analgesia. Based on the specific photothermal performance of 2D silicene core, this local anesthesia system can be triggered by near-infrared laser to release the loaded RP, resulting in on-demand and long-lasting regional anesthesia. The analgesia effect is assessed by pain behavior tests, which demonstrates that the RP-loaded Silicene@MSNs core/shell nanosystem behaves almost five times longer analgesia effect than free RP. Furthermore, the activation of pain-related neurons in nerve conduction pathways is tested to explore the underlying analgesia mechanism, revealing that the designed nanosystem can improve the pain threshold, reduce the activation of neurons in dorsal root ganglion and excitability in spinal substantia gelatinosa neurons. This designed anesthetic nanomedicine provides a facile but effective methodology for long-lasting regional anesthesia.