Exploring prospective materials for energy production and storage is one of the biggest challenges of this century. Solar energy is one of the most important renewable energy resources, due to its wide availability and low environmental impact. Metal halide perovskites have emerged as a class of semiconductor materials with unique properties, including tunable bandgap, high absorption coefficient, broad absorption spectrum, high charge carrier mobility and long charge diffusion lengths, which enable a broad range of photovoltaic and optoelectronic applications. Since the first embodiment of perovskite solar cells showing a power conversion efficiency of 3.8%, the device performance has been boosted up to a certified 22.1% within a few years. In this Perspective, we discuss differing forms of perovskite materials produced via various deposition procedures. We focus on their energy-related applications and discuss current challenges and possible solutions, with the aim of stimulating potential new applications.