Why does distilled water not conduct electricity whereas rain water does?

Distilled water is a pure form of water which does not contain ions, hence distilled water does not conduct electricity. Rain water, being an impure form of water, contains many ionic compounds like acids, hence it conducts electricity.