Muscat is the capital of Oman. It is also the seat of government and largest city in the Governorate of Muscat. As of 2008, the population of the Muscat metropolitan area was 1,090,797. The metropolitan area spans approximately 580 square miles and includes six wilayats. Known since the early 1st century CE as an important trading port between the west and the east, Muscat was ruled by various indigenous tribes as well as foreign powers such as the Persians and the Portuguese Empire at various points in its history. A regional military power in the 18th century, Muscat's influence extended as far as East Africa and Zanzibar. As an important port-town in the Gulf of Oman, Muscat attracted foreign tradesmen and settlers such as the Persians, the Balochs and Gujaratis.