2D materials have attracted considerable attention due to their exciting optical and electronic properties, and demonstrate immense potential for next-generation solar cells and other optoelectronic devices. With the scaling trends in photovoltaics moving toward thinner active materials, the atomically thin bodies and high flexibility of 2D materials make them the obvious choice for integration with future-generation photovoltaic technology. Not only can graphene, with its high transparency and conductivity, be used as the electrodes in solar cells, but also its ambipolar electrical transport enables it to serve as both the anode and the cathode. 2D materials beyond graphene, such as transition-metal dichalcogenides, are direct-bandgap semiconductors at the monolayer level, and they can be used as the active layer in ultrathin flexible solar cells. However, since no 2D material has been featured in the roadmap of standard photovoltaic technologies, a proper synergy is still lacking between the recently growing 2D community and the conventional solar community. A comprehensive review on the current state-of-the-art of 2D-materials-based solar photovoltaics is presented here so that the recent advances of 2D materials for solar cells can be employed for formulating the future roadmap of various photovoltaic technologies.