McNaught discovered the comet in a CCD image on 7 August 2006 during the course of routine observations for the Siding Spring Survey, which searched for Near-Earth Objects that might represent a collision threat to Earth. The comet was discovered in Ophiuchus, shining very dimly at a magnitude of about +17. From August through November 2006, the comet was imaged and tracked as it moved through Ophiuchus and Scorpius, brightening as high as magnitude +9, still too dim to be seen with the unaided eye. Then, for most of December, the comet was lost in the glare of the Sun.