Megan Rapinoe will play her final match for the United States in a friendly against South Africa on 24 September.
Prior to the 2023 World Cup she confirmed plans to retire when the National Women's Soccer League (NWSL) season ends in November.
"When I think back on the past 30-plus years of playing this game, my overriding emotions are joy and gratitude," Rapinoe said.