Hideyoshi thought he would be safe inside a fortified castle.
To celebrate his unification of Japan after more than a century of civil war, Hideyoshi had made the castle the country's greatest fortress, so the Tokugawa felt obliged to destroy it in 1615 after snatching power away from Hideyoshi's heir.