Chloromethane has been detected in the low-mass Class 0 protostellar binary, IRAS 16293–2422, using the Atacama Large Millimeter Array (ALMA). It was also detected in the comet 67P/Churyumov–Gerasimenko (67P/C-G) using the Rosetta Orbiter Spectrometer for Ion and Neutral Analysis (ROSINA) instrument on the Rosetta spacecraft. The detections reveal that chloromethane can be formed in star-forming regions before planets or life is formed.