San‘a’ is one of the ancient Yemeni cities dating back to the Sabaean dynasty of the 6th Century BC. The oldest written reference to its existence is found in inscriptions which date back to the 1st Century AD. It is suggested that San‘a’ was the capital of the Himyarite kingdom at the onset of the 6th Century AD.
When King Yousef Athar (or Dhu Nuwas), the last of the Himyarite kings, was in power, San‘a’ was also the capital of the Ethiopian viceroys, then after 570 of the Persians.
As of the dawn of Islam until the detachment of independent sub-states in many parts of Yemen Islamic Caliphate, San‘a’ persisted as the governing seat, who himself is Caliph's deputy in running the affairs of one of Yemen's Three Makhalifs: Mikhlaf San‘a’, Mikhlaf al-Janad and Mikhlaf Hadhramawt. The city of San‘a’ recurrently assumed an important status and all Yemenite States competed to control it.
The Mamelukes arrived in Yemen in AD 1517. Following the collapse of the Mamelukes in Egypt at the hands of the Ottoman Turks, Yemen fell under the Ottoman Rule and during the first Ottoman rule of Yemen between 1538-1635, San‘a’ became the capital of the Ottoman Vilayet and also during the Ottoman second rule 1872-1918. In 1918, San‘a’ was the capital of Imam Yahya, who ruled North Yemen. At the onset of the 1962 revolution which deposed the imamate rule, it became the capital of the Yemen Arab Republic. It was then the capital of unified Yemen in 1990 where it is dubbed as the historical capital of Yemen.
what a great and yet short history of the city,I would like to add one thing,the city is put under the care of UN or something else I dont know, because it was added to the legacy of Human Heritage,thus it is the biggest place to be added to such legacy,one more thing to add about Sana,it is the first place on planet Earth to build multi levels more than thousand year ago,there is ancient buildings of ten stores built from mud and stones,thanks Harry Saad