Heterojunction diodes, which comprise boron-doped p-type ultrananocrystalline diamond/hydrogenated amorphous carbon composite (UNCD/a-C:H) films prepared by coaxial arc plasma deposition and n-type Si substrates, were electrically investigated to evaluate the photovoltaic characteristics. The diode showed a typical diode behavior. Photodetection for 254 nm monochromatic light, which is predominantly attributable to photocurrents generated in UNCD grains, was evidently confirmed in the heterojunctions. Since dangling bonds are detectable by electron spin resonance spectroscopy, their control might be a key for improving the rectifying action and photodetection performance.