The present invention relates to the internal gettering of impurities in semiconductors by metal alloy clusters. In particular, intermetallic clusters are formed within silicon, such clusters containing two or more transition metal species. Such clusters have melting temperatures below that of the host material and are shown to be particularly effective in gettering impurities within the silicon and collecting them into isolated, less harmful locations. Novel compositions for some of the metal alloy clusters are also described.