You wanted to isolate the basic compound dissolved in dichloromethane.

Dichloromethane has a low boiling point (39.8-40oC) while the basic compound is a solid. Distillation will remove the volatile solvent, leaving the solid in the original flask.