The invention provides a driving device which comprises a shell, an end cover, a driving mechanism, a
speed reduction component and an output part, the
speed reduction component is arranged in the shell and comprises an input part, an output part and a fixing part, the fixing part is connected with the shell, and the input part, the output part and the fixing part are in transmission fit; the input piece is provided with a second cavity, the driving mechanism is at least partially located in the second cavity, the driving mechanism comprises a driving part, the driving part comprises a
stator assembly and a rotor
assembly which are arranged in the direction perpendicular to the axis of the driving mechanism, the
stator assembly is connected with the end cover or the shell, and the rotor assembly is connected with the input piece. The end cover is connected with the shell, the rotor assembly is connected with the input part, the output part is connected with the output part, the driving device further comprises a first bearing part, the first bearing part is connected between the output part and the shell, the axial height of the driving device is reduced, and the overall structure is compact.