A robust and diagnostic STS marker for stem rust resistance gene Sr47 was developed and validated for marker-assisted selection. Stem rust (caused by Puccinia graminis f. sp. tritici, Pgt) resistance gene Sr47, originally transferred from Aegilops speltoides to durum wheat (Triticum turgidum subsp. durum) line DAS15, confers a high level of resistance to Pgt race TTKSK (Ug99). Recently, the durum Rusty 5D(5B) substitution line was used to reduce the Ae. speltoides segment, and the resulting lines had Sr47 on small Ae. speltoides segments on wheat chromosome arm 2BL. The objective of this study was to develop a robust marker for marker-assisted selection of Sr47. A 200-kb segment of the Brachypodium distachyon genome syntenic with the Sr47 region was used to identify wheat expressed sequence tags (ESTs) homologous to the B. distachyon genes. The wheat EST sequences were then used to develop sequence-tagged site (STS) markers. By analyzing the markers for polymorphism between Rusty and DAS15, we identified a co-dominant STS marker, designated as Xrwgs38, which amplified 175 and 187 bp fragments from wheat chromosome 2B and Ae. speltoides chromosome 2S segments, respectively. The marker co-segregated with the Ae. speltoides segments carrying Sr47 in the families from four BC2F1 plants, including the parent plants for durum lines RWG35 and RWG36 with the pedigree of Rusty/3/Rusty 5D(5B)/DAS15//47-1 5D(5B). Analysis of 62 durum and common wheat cultivars/lines lacking the Sr47 segment indicated that they all possessed the 175-bp allele of Xrwgs38, indicating that it was diagnostic for the small Ae. speltoides segment carrying Sr47. This study demonstrated that Xrwgs38 will facilitate the selection of Sr47 in durum and common wheat breeding.