Ayari was born in Tunis. After his secondary studies at Sadiki College, he enrolled in the School for Advanced Studies in the Social Sciences. He earned a doctorate in economics in 1961 and a master's degree in private law from the School for Advanced Studies in the Social Sciences of the Paris-Sorbonne University.[1]