An optical module includes: an optical fiber; a ferrule with an insertion hole where the optical fiber is inserted; a sleeve with a through hole where the ferrule is inserted; a light emitting element; and a wiring board having a first principle surface where the optical element is disposed and a second principle surface where the sleeve is disposed. The sleeve has a deformation range where an outer surface is concave and an inner surface defining the through hole is convex, the inner surface of the deformation range being in contact with the ferrule. The sleeve is a metal cylinder with a resin provided to fill a space between the metal cylinder and the ferrule.