The invention discloses a ball type motor with a three-dimensional topology magnetic pole distribution structure The ball type motor comprises an outer rotor (1), an outer stator (2), a ball bearing (3), a base (4), an inner rotor (5) and an inner stator (6), wherein the rotor and the stator are sleeved with each other; the ball bearing (3) is installed in the inner stator (6); the inner rotor (5) is sleeved on the external part of the inner stator (6); the outer stator (2) is sleeved on the external part of the inner rotor (5); and the outer rotor (1) is sleeved on the external part of the outer stator (2). The electromagnetic force driving is adopted for the ball type motor disclosed by the invention, besides magnetic poles and coil magnetic poles are distributed along a spherical surface, and also can be distributed along the radial direction, thus the magnetic field intensity of a coil magnetic pole region is increased greatly, simultaneously the interaction force between the magnetic poles is improved, not only can the continuous rotation space with spatial three degrees of freedom of the ball motor rotor can be realized, but also the output torque, especially the tilting moment, of the ball motor is improved effectively.