Embodiments of the present invention disclose an ultrasonic atomizer and electronic cigarette. The ultrasonic atomizer comprises a liquid storage cavity and a piezoelectric ceramic piece both are provided in an outer sleeve; the plane where the piezoelectric ceramic piece is located is parallel to the axial line of the outer sleeve; at least one surface of the piezoelectric ceramic piece is in contact with a liquid storage body; the liquid storage body communicates with the liquid storage cavity; and an atomization surface of the piezoelectric ceramic piece communicates with an air passage.