The method of finite-gap integration was created to solve the periodic KdV initial problem. Its development during last 30 years, combining the spectral theory of differential and difference operators with periodic coefficients, the algebraic geometry of compact Riemann surfaces and their Jacobians, the Riemann theta functions and inverse problems, had a strong impact on the evolution of modern mathematics and theoretical physics. This article explains some of the principal historical points in the creation of this method during the period 1973-1976, and briefly comments on its evolution during the last 30 years.