A beam pumping unit based on a direct drive motor, comprising a base (1). The upper end of the base (1) is provided with a stand (14); the upper end of the stand (14) is provided with a walking beam (10); one side of the walking beam (10) is provided with a horsehead (13); the horsehead (13) is provided with a lifting rope (11); the lifting rope (11) is provided with a beam hanger (12); the end of the walking beam (10) distant from the horsehead (13) is provided with a counterweight (15); the upper end of the base (1) is further provided with a support base (2); the upper end of the support base (2) is provided with a direct drive motor (4). In the pumping unit, conventional belt, belt pulley, and speed reducer are omitted, the failure occurrence probability of the pumping unit is reduced, the power consumption of the pumping unit driven by a direct drive motor is relatively low, and current and voltage can be adjusted according to the working state of the pumping unit so as to automatically adjust the output