Disclosed in an embodiment are a light emitting device, and a light emitting device package and a light emitting module having the same. According to an embodiment, the light emitting device comprises: a first superlattice layer arranged on an AlN template layer, and a first semiconductor layer, a second superlattice layer, and a first conductive semiconductor layer; an active layer having a quantum well layer and a quantum wall layer arranged on the first conductive semiconductor layer; and an electron blocking layer arranged on the active layer and a second conductive semiconductor layer. A first and second layers of the first superlattice layer, the first semiconductor layer, and third and fourth layers of the second superlattice layer include AlGaN-based semiconductors, and an aluminum composition of the third layer is higher than an aluminum composition of the fourth layer and has the same composition range as that of an aluminum composition of the first semiconductor layer. The active layer emits ultraviolet light.