An optical element includes a first resin portion, a second resin portion provided in contact with the first resin portion, an adhesion portion, a first base material, and a second base material, the first resin portion, the second resin portion, and the adhesion portion being provided between the first base material and the second base material. The adhesion portion is in contact with the second resin portion and one of the first base material and the second base material. When an elastic modulus of the first resin portion is denoted by E1, an elastic modulus of the second resin portion is denoted by E2, and an elastic modulus of the adhesion portion is denoted by E3, the optical element satisfies a relationship of E3<E2<0.9×E1.