Metal-organic frameworks (MOFs), as a very promising category of porous materials, have attracted increasing interest from research communities due to their extremely high surface areas, diverse nanostructures, and unique properties. In recent years, there is a growing body of evidence to indicate that MOFs can function as ideal templates to prepare various nanostructured materials for energy and environmental cleaning applications. Recent progress in the design and synthesis of MOFs and MOF-derived nanomaterials for particular applications in lithium-ion batteries, sodium-ion batteries, supercapacitors, dye-sensitized solar cells, and heavy-metal-ion detection and removal is reviewed herein. In addition, the remaining major challenges in the above fields are discussed and some perspectives for future research efforts in the development of MOFs are also provided.