A former Taj player and head coach, Bayati was appointed as head coach of Iran national football team in 1967 and led the team in the 1968 AFC Asian Cup. Iran won the title without any loss or draw. He resigned after the tournaments in protest to the then President of Iran Football Federation and was succeeded by Zdravko Rajkov. He was returned to the national team after four years and was re-appointed as head coach in 1972 after the resignation of Mohammad Ranjbar. Bayati led the team in the 1972 Summer Olympics with bad results and was unable to qualify for the 1974 FIFA World Cup. He was sacked as national football team head coach in 1974.