Halide perovskites are renowned for their remarkable optoelectronic properties, yet their application is hindered by stability challenges. Metal-organic frameworks (MOFs) have emerged as promising matrices for enhancing perovskite durability. In this study, we achieved the in-situ synthesis of a series of perovskites within the MOF-5 matrix, spanning three-dimensional, quasi two-dimensional, and two-dimensional structures, via microwave-assisted reaction techniques. This microwave synthesis method has proven to be a rapid and efficient approach for the high-yield production of perovskite materials. These MOF-5⊃perovskites exhibited superior optical properties, positioning them as promising candidates for various optoelectronic applications, including white light-emitting diodes and optical wireless communication (OWC) systems. Significantly, our perovskites demonstrated high and consistent communication rates, making them suitable for both space and underwater OWC deployments. Overall, our study underscores the potential of microwave-assisted synthesis in advancing high-performance perovskite materials, offering valuable insights for the development of future optoelectronic devices.