Rabat - Morocco was ranked 9th among the best countries in terms of the protection of the environment and climate in the world.