An optical waveguide has a diffusion area (optical waveguide) with a high
refractive index formed by diffusing impurities on a substrate. The
diffusion area has a bent portion, and the optical waveguide includes: a
groove formed by cutting the substrate along the diffusion area on the
outside of the bent portion of the diffusion area; and a first buffer
layer disposed on the upper portion of the diffusion area, having a
refractive index equal to or higher than the refractive index of the
substrate. The optical waveguide includes a second buffer layer having a
refractive index equal to or lower than the refractive index of the
substrate on the upper portion of the first buffer layer, and the second
buffer layer is formed including contact with a side face of the groove.