The present invention relates to a solid electrolyte enables high ion conductivity, excellent voltage stability, low electric conductivity, homogeneous composition, reduced self-discharge and excellent atmosphere stability, a method of producing the same and a thin film battery comprising the same. The solid electrolyte according to the present invention is represented by the following formula. Lix—B—Oy—Nz