The unique morphology of the nanocomposite is due to the confinement, typical diffusion path and the interaction between PANI and Au-nanoparticles.