In the process for producing an optical waveguide of the invention, it is preferable that in the step of forming the layer, the optical material is a material which is converted to a siloxane polymer having siloxane bonds by irradiation with the light having higher energy.