They worked to maintain the purity of this race through eugenics programs (including anti-miscegenation legislation, compulsory sterilization of the mentally ill and the mentally deficient, the execution of the institutionalized mentally ill as part of a euthanasia program).