We demonstrate efficient and stable dual-wavelength microlasers fabricated by encapsulating different organic dyes into metal-organic framework (MOF) microcrystals. The intermolecular interactions between the organic dyes are suppressed effectively by the spatial confinement effect of the MOF pores, enabling a simultaneously efficient optical gain, and therefore lasing at different wavelengths. The results represent an important step towards a function-oriented laser material design.