Kiarostami was born in Tehran to a Persian family. His first artistic experience was painting, which he continued into his late teens, winning a painting competition at the age of 18 shortly before he left home to study at the University of Tehran School of Fine Arts. He majored in painting and graphic design and supported his studies by working as a traffic policeman.
As a painter, designer, and illustrator, Kiarostami worked in advertising in the 1960s, designing posters and creating commercials. Between 1962 and 1966, he shot around 150 advertisements for Iranian television. In the late 1960s, he began creating credit titles for films (including Gheysar by Masoud Kimiai) and illustrating children's books.