The United States Soccer Federation reached landmark agreements to pay its men’s and women’s teams equally, making the American national governing body the first in the sport to promise equal pay for both sexes.

The federation announced separate collective bargaining agreements with the unions for both national teams through December 2028 on Wednesday, capping off years of often contentious negotiations.

The men have been playing under the terms of a collective bargaining agreement that expired in December 2018. The women’s CBA expired at the end of March, but negotiations continued after the federation and players agreed to settle a gender discrimination lawsuit filed by some of the players in 2019. The agreement was conditional on the federation reaching labor agreements that equalized pay and bonuses for the two teams.

Perhaps the most contentious issue was World Cup prize money, which is determined by how far a team advances in the tournament. While the United States women have been successful on the international stage, winning back-to-back World Cups, differences in FIFA prize money meant they received far less than the men’s winners.

The unions agreed to pool FIFA’s payments for the men’s World Cup later this year, the Women’s World Cup next year, as well as the tournaments in 2026 and 2027.

Each player will receive matching game appearance fees, making the USSF the first federation to pool FIFA prize money in this manner, according to the USSF.

Previously, the federation based bonuses on FIFA payments, which set aside $400 million for the 2018 men’s tournament, including $38 million for champion France, and $30 million for the 2019 women’s tournament, including $4 million for champion the United States.

FIFA has increased the total prize money for the 2022 men’s World Cup to $440 million, and its president, Gianni Infantino, has proposed that FIFA double the women’s prize money to $60 million for the 2023 Women’s World Cup, which has been expanded to 32 teams.

For the current World Cup cycles, the USSF will pool FIFA funds, taking 10% off the top and then dividing the remainder equally among 46 players – 23 on each team’s roster. For the 2026-27 cycle, the USSF cut increases to 20% before the split.

After missing the 2018 World Cup, the men qualified for this year’s World Cup, which will be held in Qatar beginning in November. The women’s team will attempt to qualify for the 2023 World Cup, which will be co-hosted by Australia and New Zealand.

Players will earn identical game bonuses in smaller tournaments, such as those run by North America’s governing body. In addition, for exhibition games, players will receive appearance and performance fees based on the match result and opponent rank. Players who do not dress will be charged the equivalent of attending a national team training camp.

The women and men will also receive a share of commercial revenue from USSF-controlled matches, with bonuses for sellouts, and each team will receive a share of broadcast, partner, and sponsor revenue.

Players will receive a 401(k) plan, and the USSF will match up to 5% of their pay, subject to IRS limits. That money will be deducted from commercial revenue shares.

Women ended six years of litigation over equal pay in February with a $24 million settlement from the USSF, contingent on new collective bargaining agreements.

As part of the agreement, the players will split $22 million, roughly one-third of the damages sought. The USSF also agreed to establish a $2 million fund to assist players in their post-soccer careers, as well as charitable efforts aimed at growing the sport for women.

Women’s national team stars Megan Rapinoe and Alex Morgan were among those who sued the federation in 2019 for equal pay and working conditions. Rapinoe stated on “CBS Mornings” in February that the lawsuit represents justice for all players.