We describe an original technology for the electrophoretic deposition of nanodiamonds (NDs) into channels of complicated morphology in porous matrices obtained by anodizing single crystal silicon. It is shown that even long channels can be completely filled using organosols of detonation NDs with modifies surface.