By SABC Sport
13th October 2023
The 42-year-old Vilda led Spain to the Women's World Cup title with a 1-0 defeat of England in the final.
But he was sacked soon after as the nation was rocked by the Luis Rubiales scandal.
Vilda also led Spain to the European Championship quarter-finals in 2017 and 2022.
He replaces Reynald Pedros, who led Morocco to their first Women's World Cup in 2023 where they lost to France in the last 16.
A Moroccan football federation statement read: "The Royal Moroccan Football Federation contracted the Spanish coach Mr Vilda to coach the women's national football team in the next stage."