Optoelectronic devices are key building blocks for sustainable energy, imaging applications, and optical communications in modern society. Two-dimensional materials and perovskites have been considered promising candidates in this research area due to their fascinating material properties. Despite the significant progress achieved in the past decades, challenges still remain to further improve the performance of devices based on 2D materials or perovskites and to solve stability issues for their reliability. Recently, a novel concept of 2D material/perovskite heterostructure has demonstrated remarkable achievements by taking advantage of both materials. The diverse fabrication techniques and large families of 2D materials and perovskites open up great opportunities for structure modification, interface engineering, and composition tuning in state-of-the-art optoelectronics. In this review, we present comprehensive information on the synthesis methods, material properties of 2D materials and perovskites, and the research progress of optoelectronic devices, particularly solar cells and photodetectors which are based on 2D materials, perovskites, and 2D material/perovskite heterostructures with future perspectives.