The utility model relates to the technical field of motors, and discloses a motor with a self-lubricating function. Through the arranged lubricating mechanism, the interior of an
oil storage box is filled with lubricating oil, then a motor is started, when the motor works, a rotating shaft can be driven to rotate, the rotating shaft drives an ejector block to rotate, and when the ejector block rotates to the uppermost portion, an inclined bottom shell can be jacked up, so that a first oil outlet hole and a second oil outlet hole coincide; when the motor is not used, the top block is separated from the highest point, so that the internal lubricating oil enters the extension
pipe through the first oil outlet hole and the second oil outlet hole and drips between the rotating shaft and the bearing along the extension
pipe, and the lubricating work can be completed; the inclined bottom shell can move downwards under the acting force of the spring, so that the first oil outlet hole and the second oil outlet hole are staggered,
lubrication is stopped, waste of lubricating oil is avoided, the situation that the transmission efficiency of the motor is reduced after the motor is used for a long time can be avoided, and waste of the lubricating
oil can be avoided when the motor does not work.