It became the capital city of Japan in the middle of 19th century, when its name changed from "Edo" to "Tokyo". Before then, Kyoto was the capital of Japan. The Emperor of Japan, or Tenno, lived in Kyoto. Edo was the place where the Tokugawa Shoguns lived. The city grew up under the control of the shoguns. Before then it was a small town on the sea. Edo means "the mouth of a river" in Japanese.