Nanolasers, with small footprint and ultralow threshold, are promising for applications in data communication, on-chip optical computing, and optical interconnects. In addition to the microcavity design, the choice of gain material is another critical factor determining the optical performance of nanolasers. 2D materials are widely studied and applied in nanoscale optoelectronic devices due to their exceptional electrical, chemical, thermal, and optical properties caused by the unique layered structures. As emerging materials with unique optical properties, 2D materials are selected as effective gain materials for designing of nanolasers. In this review, the recent advances in nanolasers based on 2D materials are comprehensively addressed.