Poly(methylene blue)/graphene nanocomposite thin films were prepared by electropolymerization of methylene blue in the presence of graphene which have been synthesized by two different methods of a chemical oxidation process and an electrochemical approach. Synthesized nanocomposite thin films were characterized by using cyclic voltammetry, UV-vis. absorption spectroscopy, powder X-ray diffraction, and scanning tunneling microscopy techniques. Electrocatalytical properties of prepared poly (methylene blue)/graphene nanocomposite films were compared toward electrochemical oxidation of nitrite. Under optimized conditions, electrocatalytical effect of nanocomposite films of chemically prepared graphene through electrochemical oxidation of nitrite was better than that of electrochemically prepared graphene. (C) 2014 Elsevier Ltd. All rights reserved.