One-step coelectrodeposition-assisted layer-by-layer assembly was employed for preparing multilayer thin films with a controlled three-dimensional nanoarchitecture and application in an ultrasensitive DNA biosensor.