The optical cable comprises an optical cable subunit, a PI film, fiber paste, an inner-layer steel pipe, a foaming layer, an outer-layer steel pipe and an outer sheath which are sequentially arranged from inside to outside, the optical cable subunit comprises a subunit sheath and a plurality of optical fibers, the PI film wraps the outer surface of the subunit sheath, the inner-layer steel pipe, the foaming layer and the outer-layer steel pipe, and the outer-layer steel pipe wraps the PI film. The thickness of the outer-layer steel pipe ranges from 0.9 mm to 1.0 mm, the thickness of the foaming layer ranges from 1.0 mm to 1.5 mm, and the thickness of the inner-layer steel pipe ranges from 0.25 mm to 0.3 mm. Through the inner and outer double-layer steel pipes, the compression resistance of the optical cable is ensured, the tensile property of the optical cable is also ensured, the optical cable can cope with a high-temperature and high-pressure environment, the foaming layer provides buffering, thermal insulation and other effects for the optical cable, the survival ability of the optical cable is further improved, and the service life of the optical cable is prolonged. The optical cable has the characteristics of high voltage endurance capability, strong tensile capability, corrosion resistance, high temperature resistance and the like.