Nickel nanowires of 4 nm diameter were formed in the cavity of carbon nanotubes with an inner diameter of 20 nm.