In this paper, we present new spectropolarimetric observations of the planet-hosting star tau Bootis, using ESPaDOnS and Narval spectropolarimeters at Canada-France-Hawaii Telescope and Telescope Bernard Lyot, respectively.We detected the magnetic field of the star at three epochs in 2008. It has a weak magnetic field of only a few gauss, oscillating between a predominant toroidal component in January and a dominant poloidal component in June and July. A magnetic polarity reversal was observed relative to the magnetic topology in 2007 June. This is the second such reversal observed in 2 years on this star, suggesting that tau Boo has a magnetic cycle of about 2 years. This is the first detection of a magnetic cycle for a star other than the...