Tokyo was originally a small fishing village named Edo, in what was formerly part of the old Musashi Province. Edo was first fortified by the Edo clan in the late twelfth century. In 1457, Ōta Dōkan built Edo Castle. In 1590,Tokugawa Ieyasu made Edo his base. When he became shogun in 1603, the town became the center of his nationwide military government. During the subsequent Edo period, Edo grew into one of the largest cities in the world with a population topping one million by the 18th century. Edo became the de facto capital of Japan even while the emperor lived in Kyoto,

Tokyo, officially Tokyo Metropolis, is one of the 47 prefectures of Japan, and is both the capital and most populous city of Japan (37,800,000 in 2016). Tokyo is often referred to as a city, but is officially known and governed as a "metropolitan prefecture", which differs from and combines elements of a city and a prefecture, a characteristic unique to Tokyo. The Tokyo metropolitan government administers the 23 Special Wards of Tokyo and the 39 municipalities in the western part of the prefecture and the two outlying island chains. The city hosts 51 of the Fortune Global 500 companies, the highest number of any city in the world.

More Info: en.wikipedia.org