King Mohammed VI was accompanied by Crown Prince Moulay El Hassan, Prince Moulay Rachid and Princesses Lalla Meryem and Lalla Hasnaa.
During the ceremony, the Duke of Sussex handed the Monarch a written message from Queen Elizabeth II of the United Kingdom.
Earlier Monday, the duke and duchess of Sussex met children with specific needs and visited an equestrian facility, where horse riding is used to help some children integrate better in school and in society.
In Rabat, the royal couple also met women entrepreneurs and had the opportunity to try Moroccan cuisine, and discover the crafts and the history of the capital, mainly when they visited the Andalusian gardens of the Oudayas, overlooking the Bouregreg estuary.
Since they landed in Morocco on Saturday, the royal couple had a busy agenda, starting with a meeting with Crown Prince Moulay El Hassan, in Rabat Saturday evening.
The couple spent Sunday morning in Asni in the High Atlas Mountains near Marrakech to promote girls’ education, one of the focuses of their trip to Morocco. They visited there boarding schools run by Education for All and the high school Le Lycée Qualifiant Grand Atlas.
In Asni, Princess Meghan had a Henna tattoo and met alongside her husband young girls, students and teachers.
This is the royal couple’s first visit to Morocco. Prince Harry’s father Prince Charles and his wife Camilla had paid a visit to Morocco in 2011 at the invitation of King Mohammed VI.