Quantitative detection of veterinary drug residues in animal-derived food is of great significance. In this work, a simple and label-free electrochemical aptasensor for the highly sensitive detection of chloramphenicol (CAP) in milk was successfully developed based on a new biosensing method, where the single- or few-layer Ti3C2 MXene nanosheets functionalized via the specific aptamer by self-assembly were used as electrode modifiers for a glassy carbon electrode (aptamer/Ti3C2 MXene/GCE). Differential pulse voltammetry (DPV), electrochemical impedance spectroscopy (EIS), cyclic voltammetry (CV), scanning electron microscopy (SEM), atomic force microscope (AFM), and so on were utilized for electrochemical and morphological characterization. Under the optimized conditions, the constructed aptasensor exhibited excellent performance with a wider linearity to CAP in the range from 10 fM to 1 μM and a low detection limit of 1 fM. Aptamer/Ti3C2 MXene/GCE demonstrated remarkable selectivity over other potentially interfering antibiotics, as well as exceptional reproducibility and stability. In addition, the aptasensor was successfully applied to determine CAP in milk with acceptable recovery values of 96.13% to 108.15% and relative standard deviations below 9%. Therefore, the proposed electrochemical aptasensor is an excellent alternative for determining CAP in food samples.