The invention discloses a heat treatment technology of a steel-grade oil casing. The technology comprises the following steps of 1, annealing of a steel pipe, wherein the steel pipe is heated to 650-750 DEG C, subjected to heat preservation and cooled; 2, normalizing of the steel pipe, wherein the cooled steel pipe is heated to 750-850 DEG C, subjected to heat preservation and cooled; 3, quenchingof the steel pipe, wherein the cooled steel pipe is heated to 650-750 DEG C, subjected to heat preservation and then quickly cooled to obtain martensite; 4, tempering of the steel pipe, wherein the martensite steel pipe is heated to 650-750 DEG C, the tempering time is 1.5-2 h, and the steel pipe is subjected to heat preservation and then cooled. Two modes of oil cooling and natural cooling in air are adopted for cooling in the first step, the second step and the fourth step, and in the third step, the pipe is filled with liquid nitrogen, and a liquid nitrogen cooking mode is adopted. According to the heat treatment technology, the hardenability and mechanical properties of the steel pipe can be improved through heat treatment products, the bending protection effect is better, and the steel pipe is not easily broken.