Himeji is situated at an important communications centre and as a result the regent Toyotomi Hideyoshi built a castle there in the closing years of the 16th century, part of the network of such fortresses that he created all over Japan to ensure its continued unification.