The invention provides a method for carrying out planing machining for narrow grooves by virtue of a numerically-controlled boring and milling machine. The method comprises the following steps: 1. clamping a workpiece, enabling a machining surface to be parallel to a spindle of the numerically-controlled boring and milling machine, and enabling a length direction of the narrow grooves to be parallel to the spindle; 2. clamping and correcting a tool, enabling a machining direction of a boring tool to be the same as the length direction of the narrow grooves, and enabling a feeding direction to be the same as a thickness direction of the narrow grooves; 3. fixing the spindle; and 4. carrying out program machining, specifically, determining a numerical control shaft which is parallel to the length direction of the narrow grooves to be machined to be in main cutting motion, and determining a numerical control shaft which is parallel to the depth direction of the narrow grooves to be machined to be in feeding motion; starting a program to machine; and realizing the planing machining for the narrow grooves by virtue of the numerically-controlled boring and milling machine and through the above-mentioned steps. Machining for the narrow grooves is carried out by virtue of the numerically-controlled boring and milling machine, thus the machining efficiency is improved and the machining quality is guaranteed; the operation is simple and practicable, and the width dimensions of the grooves are easy to control; and the efficiency of machining the narrow grooves by virtue of the method provided by the invention is 2 to 5 times of the efficiency of machining narrow grooves by virtue of an end mill, and the economic benefits of machining the grooves with the width dimensions of 2-4mm are the most obvious.