In a note on its website, the FCO said the current geopolitical situation in the North Africa and Middle East regions was impacting the country.
It added: “Protective security measures are in place at many Moroccan hotels and sites popular with tourists. Security measures, including security personnel, may be visible in certain areas.
“The Moroccan authorities have warned of an increased threat linked to the growing number of Moroccans sympathetic or belonging to international terrorist organisations operating in Syria, Iraq and Libya, and regularly report the disruption of terrorist cells.
“There is considered to be a heightened threat of terrorist attack globally against UK interests and British nationals, from groups or individuals motivated by the conflict in Iraq and Syria. You should be vigilant at this time.”