Spain's World Cup winning squad agreed to end their boycott of the national team early on Wednesday after the country's football federation (RFEF) said it would make "immediate and profound changes" to its structure.
The decision was reached around 5:00 am (0300 GMT) after more than seven hours of meetings at a hotel in Oliva, an hour from Valencia, involving the players, RFEF officials, the National Sports Council (CSD) and the women's players' union FUTPRO.
The players had said they would not represent Spain until there were further changes at the federation, deepening a crisis that started after former (RFEF) boss Luis Rubiales kissed Jenni Hermoso during the World Cup presentation ceremony.
"A joint commission will be created between RFEF, CSD and players to follow up on the agreements, which will be signed tomorrow," CSD President Victor Francos told reporters.
"The players have expressed their concern about the need for profound changes in the RFEF, which has committed to making these changes immediately."
Neither Francos nor Rafael del Amo, president of the RFEF committee for women's football, would elaborate on the changes to be made, only saying they would be announced "soon".
"The players see it as a rapprochement of positions. It is the beginning of a long road ahead of us," FUTPRO president Amanda Gutierrez told reporters.
"Once again, they have shown themselves to be coherent and the vast majority have decided to stay for the sake of this agreement."
After most of the Women's World Cup winners were selected for upcoming games, the players said in a joint statement they would take the "best decision" for their future and health after they studied the legal implications of being included in a squad list they had asked to be left out.
They argued the federation cannot require their presence because they alleged the call-up was not issued within the world's football governing body FIFA parameters in terms of timings and procedure.
The players could have faced sanctions including fines of up 30,000 euros ($32,000) and the suspension of their federation licence for two to 15 years according to Spain's Sports Act if they had refused the call-up.
Twenty players who said they were boycotting the team were called up by new coach Montse Tome, and while all of them reported for training on Tuesday two decided to leave the squad for "personal reasons".
Neither of the players would be sanctioned and it was agreed their identities would remain anonymous.
"The first thing they have been told here has been: whoever is not at ease, does not feel strong enough, should know that neither the federation nor the CSD was going to apply a sanctioning process," Francos said.
The revolt by the players was triggered after former RFEF chief Rubiales kissed forward Hermoso following Spain's World Cup victory.
She disputed his insistence the kiss was consensual, sparking a national debate about macho culture in sport and eventually led to Rubiales's resignation.
Hermoso was not in the squad list announced on Monday and accused the RFEF of trying to divide and manipulate the players.
Spain are set to make their debut in the Women's Nations League against Sweden in Gothenburg on Friday before playing against Switzerland in Cordoba on September 26.
The Nations League will determine which teams from Europe qualify for the 2024 Paris Olympic Games.
The RFEF said the players would have a late breakfast after resting and will hold their first practice on Wednesday afternoon before travelling to Gothenburg on Thursday morning.