Ultraviolet photodetectors (UV PDs) with "5S" (high sensitivity, high signal-tonoise ratio, excellent spectrum selectivity, fast speed, and great stability) have been proposed as promising optoelectronics in recent years. To realize highperformance UV PDs, heterojunctions are created to form a built-in electrical field for suppressing recombination of photogenerated carriers and promoting collection efficiency. In this progress report, the fundamental components of heterojunctions including UV response semiconductors and other materials functionalized with unique effects are discussed. Then, strategies of building PDs with lattice-matched heterojunctions, van der Waals heterostructures, and other heterojunctions are summarized. Finally, several applications based on heterojunction/heterostructure UV PDs are discussed, compromising flexible photodetectors, logic gates, and image sensors. This work draws an outline of diverse materials as well as basic assembly methods applied in heterojunction/heterostructure UV PDs, which will help to bring about new possibilities and call for more efforts to unleash the potential of heterojunctions.