The royal couple paid a visit to a girls boarding house and school in the foothills of the Atlas Mountains.