Despite the increasing number of space launches, growth of the commercial space sector, signing of the Artemis Accords, maturation of space mining technologies, the emergence of a regulatory environment through domestic legislation, and a comprehensive body of international law, an intergovernmental governing authority has yet to be established to manage mining activities on the Moon. We developed a Lunar Mining Code and mapping tool to regulate and manage prospecting and exploration activities for water ice at the Moon's poles. The Lunar Mining Code is composed of a notification system to manage prospecting, a contract system for issuing exploration licenses to allotted areas on the Moon, and best mining practices and principles to promote equal access and safeguard the lunar environment.