Guehi, who came close to joining Liverpool on transfer deadline day in September, is City's second signing of the January transfer window after their capture of winger Antoine Semenyo from Bournemouth last week for about £65 million.
Senegal had also pointed the finger at the Moroccans before the final as their players were offered little security while being mobbed by members of the public on arriving in Rabat on Friday.