was first given the Buddhist name Tosho Dai-Gongen (), then after his death it was changed to Hogo Onkokuin (). Era of Ieyasu's rule Ieyasu ruled directly as shōgun or indirectly as ōgosho () during the Keichō era (1596–1615). Ieyasu's character Tokugawa Ieyasu had a number of qualities that enabled him to rise to power. He was both careful and bold—at the right times, and in the right places. Calculating and subtle, Ieyasu switched alliances when he thought he would benefit from the change. He allied with the Late Hōjō clan; then he joined Toyotomi Hideyoshi's army of conquest, which destroyed the Hōjō; and he himself took over their lands. In this he was like other daimyo of his time. This was an era of violence, sudden death, and betrayal. He was not well liked nor personally popular, but he was feared and respected for his leadership and cunning. For example, he wisely kept his soldiers out of Hideyoshi's campaign in Korea. He was capable of great loyalty: once he allied with Oda Nobunaga, he never went against him, and both leaders profited from their long alliance. He was known for being loyal towards his personal friends and vassals, whom he rewarded. He was said to have a close friendship with his vassal Hattori Hanzō. However, he also remembered those who had wronged him in the past. It is said that Ieyasu executed a man who came into his power because he had insulted him when Ieyasu was young. Ieyasu protected many former Takeda retainers from the wrath of Oda Nobunaga, who was known to harbour a bitter grudge towards the Takeda. He managed successfully to transform many of the retainers of the Takeda, Hōjō, and Imagawa clans—all whom he had defeated himself or helped to defeat—into loyal vassals. At the same time, he was also ruthless when crossed. For example, he ordered the executions of his first wife and his eldest son—a son-in-law of Oda Nobunaga; Nobunaga was also an uncle of Hidetada's wife Oeyo. Ieyasu was cruel, relentless and merciless in the elimination of Toyotomi survivors after Osaka. For days, scores of men and women were hunted down and executed, including an eight-year-old son of Toyotomi Hideyori by a concubine, who was beheaded. Unlike Toyotomi Hideyoshi, he harbored no desires to conquer outside of Japan—he only wanted to bring order and an end to open warfare, and to