A new composite material based on the electrochemical generation of a layer-by-layer structure of polyaniline (PANI) and Pt particles has been prepared. The number of layers and the nature of the external layer (PANI or Pt) determine the electrocatalytic performance of the composite for the oxidation of methanol. We demonstrate that the layer-by-layer approach to form the nanocomposite and modification of the Pt particles with a layer of PANI leads to substantially higher catalytic efficiency.