The utility model provides an atomizer with a
tar locking function and an
electronic cigarette, and the atomizer comprises a housing which is provided with a
tar storage cavity which is used for storing tobacco
tar; the atomization
assembly is arranged on the shell, the atomization
assembly is provided with an atomization channel, and the atomization
assembly is used for heating and atomizing tobacco tar entering the atomization channel; the blocking component is arranged on the shell in a sliding mode, the blocking component is provided with an oil passing channel and a limiting hole, the limiting hole extends in the sliding direction perpendicular to the blocking component, and the blocking component has an initial position and a working position; at the initial position, the
oil storage cavity and the atomization channel are isolated by the blocking component; the working position is that the oil passing channel communicates with the
oil storage cavity and the atomization channel; and the limiting component is detachably arranged in the limiting hole in a penetrating manner, so that the blocking component is limited to the initial position. According to the oil leakage prevention structure, accidental unlocking can be avoided, the locking reliability is remarkably improved, the blocking component can stably maintain the initial position, and the oil leakage prevention performance before use is effectively enhanced.