Microscopic residual tumor at the resection margin is a critical risk factor for recurrence in patients undergoing hepatectomy for liver cancer, yet current detection relies solely on postoperative pathological examination of the resected specimen, which reflects only the removed tissue rather than the actual remnant liver in the patient. How to non-invasively detect residual tumor at the resection margin of the remnant liver after surgery remains an important unresolved problem in the surgical management of liver cancer. We hypothesize that tissue stiffness at the resection margin of the remnant liver, measured by postoperative three-dimensional magnetic resonance elastography (3D-MRE), may reflect microscopic residual tumor and may therefore correlate with pathological resection margin status and be predictive of postoperative tumor recurrence. This study aims to prospectively evaluate the diagnostic performance of postoperative 3D-MRE in detecting residual tumor at the resection margin, using pathological resection margin status as the reference standard, and to further assess its value in predicting tumor recurrence in patients undergoing hepatectomy for liver cancer.