Geosmin, which in Greek means scent of the earth, is responsible for this characteristic smell of wet earth. It is all due to a bacterium: Streptomyces coelicor or Albert's bacteria.
The word petricor is documented as an adaptation of the English petrichor in reference to the smell of rain. It is currently under study for inclusion in the academic dictionary.