Yanayev was born on 26 August 1937 in the town of Perevoz, Gorky Oblast during the administration of Joseph Stalin as General Secretary of the Communist Party of the Soviet Union. He graduated from the Gorky Institute of Agriculture in 1959. After graduation he worked as the head of a mechanised agricultural unit and later as a chief engineer in the Gorky Oblast. He applied and officially became a member of the Communist Party of the Soviet Union (CPSU) in 1962. From 1963 to 1968, he held the positions of second, and subsequently first, secretary of the Gorky Komsomol, and later became Chairman of the Committee of Youth Organisations, which he held for 12 years. From 1980 to 1986 he was Deputy Chairman of the Union of Soviet Societies for Friendship and Cultural Relations with Foreign Countries. He became Secretary for International Affairs of All-Union Central Council of Trade Unions in 1986 and became Deputy Chairman of the trade unions in 1989. In April 1990 he was elected Chairman of the All-Union Central Council of Trade Unions. As chairman of the trade unions, he was not able to quell the growing labour discontent in the country, but his position granted him a seat in the Politburo of the Communist Party of the Soviet Union (CPSU) at the 28th CPSU Congress (held in 1990), alongside his election as Secretary of the Central Committee.