Water is a crucial resource for human colonization of the Moon and Mars, and in situ resource utilization (ISRU) is key to producing it. The same chemistry that formed planets can be harnessed to generate water from lunar regolith with hydrogen and sunlight. This process involves reactions that produce molecular hydrogen (H2) and larger metal-oxide clusters, ultimately leading to the formation of minerals and dust grains. These dust grains then aggregate to form rocky bodies, including planets. The key to this process is the reaction of water with metal hydrides, which creates H2 and stabilizes the final metal oxide product. This reaction can be driven by sunlight, making it a viable option for the Moon. The oxygen in lunar regolith can be extracted and transformed into water, providing a sustainable source of this vital resource. The process involves counter-intuitive chemical pathways, including the migration of hydrogen atoms and the weakening of metal-oxygen bonds. This reaction can be facilitated by the high surface area of lunar regolith, which is ideal for surface chemistry. The energy required for this process can be provided by simple sunlight, concentrated through passive means like lenses. The hydrogen needed for the reaction can be sourced from lunar regolith, but initial shipments may be necessary. The produced water can be recycled for human and agricultural use, and the oxygen extracted from the regolith can be used for life support and other applications. Recent experiments have demonstrated the successful production of water from lunar regolith, marking a significant step forward in ISRU technology. Further research and development will focus on optimizing the process and exploring its applications in planet formation and ISRU.