The present invention provides a substituted pyridine compound of the formula (I) or an agriculturally suitable salt or N-oxide thereof, wherein the variables in the formula (I) are defined as in the description. Substituted pyridine compounds of formula (I) are useful as herbicides.