Conventional photolithography, due to its scalability, robustness, and straightforward processes, has been widely applied to micro-and nanostructure manufacturing in electronics, optics, and biology. However, optical diffraction limits the ultimate resolution of conventional photolithography, which hinders its potential in nanoscale patterning for broader applications. Here, we introduce a derivative of conventional photolithography for nanoscale patterning called dual-layer photolithography (DLPL), which is based on the controlled exposure and development of overlapping positive and negative photoresists. In a typical experiment, substrates are sequentially coated by two layers of photoresists (both positive and negative). Then, we purposefully control the exposure time to generate slightly larger features in the positive photoresist than those in the negative photoresist. After development, their overlapping areas become the final features, which outline the original features. We demonstrate line widths down to 300 nm here, which can be readily improved with more precise control. By adjusting the lithography parameters and material deposition, the feature sizes, shapes (e.g., rings, numbers, letters), line widths (300−900 nm), and materials (e.g., SiO 2 , Cr, and Ag) of these features can be independently controlled. Combined with anisotropic etching, more complex three-dimensional nanostructures can be fabricated as well, as we demonstrate here with Si. We further fabricate photodetectors as an example application to show that these nanostructures fabricated by DLPL can be used to promote light-trapping MAPbI 3 perovskite films to achieve good photoelectric properties. This strategy is not limited to ultraviolet photolithography and may also be incorporated into other energetic beam-based lithographic approaches, including deep and extreme ultraviolet photolithographies and electron beam lithography, to enhance their resolution.