This paper presents a number of lessons learned while designing a proposed sterilization system for Mars Sample Return. This sterilization system is needed to inactivate any potentially hazardous Mars material on the exterior surface of the vessel containing sealed sample tubes filled with Mars rock cores, regolith and atmosphere. These returned samples would provide information on the geologic history of Mars, the evolution of its climate and the potential for ancient life. Mars Sample Return is categorized at Planetary Protection Category V Restricted Earth Return, so it is required to protect the Earth–Moon system from the biological impact of returning samples from Mars to Earth. This article reviews lessons learned in the development of a particular engineering implementation to support the protection of the Earth–Moon biosphere: the use of in situ ultraviolet LED illumination. The details of the biological efficacy of this approach or the policy-related impacts are outside of the scope of this manuscript. The lessons learned presented here include establishing design requirements for the system, the selection of a light source, optical design options, contamination control and approaches to thermal and power management.