 according to a first aspect of the present invention comprises a lower cladding layer, an active layer and an upper first cladding layer stacked in this order on a compound semiconductor substrate, a ridge-shaped upper second cladding layer provided on the upper first cladding layer, a light confining layer provided on both sides of the upper second cladding layer, and a contact layer provided on the upper second cladding layer, and the device has two end faces thereof with respect to the longitudinal direction of the ridge-shaped upper second cladding layer, namely, a laser emitting end face and a reflective end face, and 