Let G D (V; E) be a (molecular) graph. For a family of graphs G, the rst Zagreb indexM1 and the second Zagreb index M2 have already studied. In particular, it has been presented, the rst Zagreb index M1 and the second Zagreb index M2 of trees T in terms of domination parameter. In this paper, we present upper bounds on Zagreb indices of unicyclic and bicyclic graphs with a given domination number and also nd upper bounds on the Zagreb indices of trees, unicyclic, and bicyclic graphs with a given total domination number.