Both past tenses are highly used in verbal and written communication. Imperfetto is used when we are talking about a recurrent action in the past (i.e Da bambino andavo al mare tutte le domeniche = When I was a child I used to go to the beach every Sunday). On the other hand, passato prossimo is implied for non-recurrent past actions (i.e Da bambino una volta sono andato al mare = When I was a child I once went to the beach). Imperfetto is also used to describe lasting events in the past (i.e Ieri pioveva = Yesterday it was raining). On the contrary, passato prossimo describes temporary actions or events happened in a precise moment in the past (i.e Ieri ha piovuto un po’ = Yesterday it rained a little).