A solid electrolyte, a method of manufacturing the same, and a lithium battery and a thin-film battery that employ the solid electrolyte are provided. The solid electrolyte contains nitrogen to enhance the ionic conductivity and electrochemical stability of batteries.