Tokugawa Ieyasu (born Matsudaira Takechiyo; January 31, 1543 – June 1, 1616) was a Japanese samurai, daimyo and the founder and first shogun of the Tokugawa shogunate of Japan, which ruled from 1603 until the Meiji Restoration in 1868. He was the third of the three "Great Unifiers" of Japan, along with his former lord Oda Nobunaga and fellow Oda subordinate Toyotomi Hideyoshi. The son of a minor daimyo, Ieyasu once lived as a hostage under daimyo Imagawa Yoshimoto on behalf of his father. He later succeeded as daimyo after his father's death, serving as ally, vassal, and general of the Oda clan, and building up his strength under Oda Nobunaga.

After Oda Nobunaga's death, Ieyasu was briefly a rival of Toyotomi Hideyoshi, before declaring his allegiance to Toyotomi and fighting on his behalf. Under Toyotomi, Ieyasu was relocated to the Kanto plains in eastern Japan, away from the Toyotomi power base in Osaka. He built his castle in the fishing village of Edo (now Tokyo). He became the most powerful daimyo and the most senior officer under the Toyotomi regime. Ieyasu preserved his strength during Toyotomi's failed attempts to conquer Korea. After Hideyoshi's death and the Battle of Sekigahara, Ieyasu seized power in 1600.

He received appointment as shōgun in 1603, and voluntarily resigned from his position in 1605, although he still held the de facto control of government until his death in 1616. He implemented a set of careful rules known as the bakuhan system. This system used precisely graded rewards and punishments to encourage (or compel) the daimyo and samurai to live in peace with each other under the Tokugawa shogunate.

Early life (1543–1561)

Tokugawa Ieyasu was born in Okazaki Castle on the 26th day of the twelfth month of the eleventh year of Tenbun, according to the Japanese calendar, January 31, 1543 according to the Western calendar. Originally named Matsudaira Takechiyo (松平 竹千代), he was the son of Matsudaira Hirotada (松平 広忠), the daimyo of Mikawa of the Matsudaira clan, and Odai no Kata (於大の方; Lady Odai), the daughter of a neighbouring samurai lord, Mizuno Tadamasa (水野 忠政). His mother and father were step-siblings. They were 17 and 15 years old, respectively, when Takechiyo was born.

During the Muromachi period, the Matsudaira clan controlled a portion of Mikawa Province (the eastern half of modern Aichi Prefecture). Ieyasu's father, Matsudaira Hirotada, was a minor local warlord based at Okazaki Castle who controlled a portion of the Tōkaidō highway linking Kyoto with the eastern provinces. His territory was surrounded by stronger and predatory neighbors, including the Imagawa clan based in Suruga Province to the east and the Oda clan to the west. Hirotada's main enemy was Oda Nobuhide, the father of Oda Nobunaga.

In the year of Takechiyo's birth, the Matsudaira clan split. Hirotada's uncle, Matsudaira Nobutaka defected to the Oda clan. This gave Oda Nobuhide the confidence to attack Okazaki. Soon afterwards, Hirotada's father-in-law died, and his heir, Mizuno Nobumoto, revived the clan's traditional enmity against the Matsudaira and declared allegiance to Oda Nobuhide as well. As a result, Hirotada divorced Odai-no-kata and sent her back to her family. Hirotada later remarried to different wives, and Takechiyo eventually had 11 half-brothers and sisters.