The arms factory was an early attempt at industrialization in Fes and was part of the sultan's efforts to modernize the Moroccan army to compete with European powers, though they did not have enormous effect.