An edge banding machine for applying glue to an oblique surface and a vertical surface of a workpiece and attaching an edge band to the oblique surface and the vertical surface, the edge banding machine comprising a glue applying mechanism, the glue applying mechanism comprising a base and a glue applying unit, the base comprising a glue tub which is adapted for accommodating glue, the glue applying unit being rotatably disposed on the glue tub of the base and comprising a glue shaft and an obliquely glue applying member, a bottom end of the glue shaft protruding out of the glue tub, the obliquely glue applying member being coaxially connected to a top of the glue shaft, the obliquely glue applying member having a glue applying surface which is a tapered surface with a wide top and a narrow bottom, at least a part of the top of the glue shaft and the glue applying surface of the obliquely glue applying member being exposed outside the glue tub, the glue applying unit being able to be driven to rotate to extract the glue in the glue tub to an outer surface of the glue shaft and the glue applying surface of the obliquely glue applying member to make the glue applying unit apply the glue to the oblique surface and the vertical surface of the workpiece by the outer surface of the glue shaft and the glue applying surface of the obliquely glue applying member at a same time.