A waveguide type optical element wherein Zn is selectively diffused on a
light absorption layer using an undoped InP layer. Since an impurity
diffusion area is made on the light absorption layer under a ridge part,
a depletion layer becomes thin in a thickness direction and an electric
field can strongly be applied. Thereby, an extinction ratio
characteristic of a device can be improved.