Aims. We have investigated the development of the dust and gas coma of the comet C/2004 Q2 (Machholz) from December 2004 to January 2005 using observations obtained at the Lulin Observatory, Taiwan and the European Southern Observatory at La Silla, Chile.