The surface plasmon effect on polymer solar cells and polymer light-emitting diodes is demonstrated by using metal nanoparticles prepared from block copolymer templates. Light absorption of the polymer thin layer is increased with the incorporation of metallic nanostructures, resulting in a significant surface plasmon effect in the optoelectronic devices.