The invention relates to a milling machine, in particular to a gantry milling machine with multiple milling heads, which includes a bed, left and right columns, beams, and an electrical control cabinet. The workbench is provided with fixtures, the left and right columns are fixed on the bed, the beam is installed on the left and right columns to form a gantry frame, and the first milling head assembly is installed on the beam. The above-mentioned first milling head assembly is electrically connected with the electrical control cabinet, and a plurality of second milling head assemblies are installed on the beam, and a pushing mechanism for pushing the workbench is arranged on the bed, and the device also It includes an independent driving device that provides power for the pushing mechanism, and the second milling head assembly is electrically connected with the driving device and the electrical control cabinet. The invention can adjust the length of the processing surface according to the size of the product, and also has the advantages of simple structure, low equipment investment, stepless speed regulation, and improved production efficiency.