His first order was to forbid entering the capital Sana'a with arms, and appointed sentries at the gates to start a reign of peace and justice unparalleled during the years of his rule. City after city accepted the rule and authority of Imam Yahya; the port of Mocha, and the city of Taiz were among the first most important cities. He took steps to create a modern state, and maintained all Ottoman officials who would stay to support the development of government.