This invention relates to glutarimide compounds exhibiting herbicidal activity having the structure ##STR1## wherein A is carbonyl, thiocarbonyl or methylene, A.sup.1 is carbonyl or methylene, Q is O or (CH.sub.2).sub.n where n is 0 or 1, D is CH or N and R, R.sup.1, R.sup.2, T, X, Y and Z are as defined within, compositions containing these compounds and methods of using these compounds as herbicides and algicides.