Osaka Castle was constructed in 1585 by Toyotomi Hideyoshi. He used it as his base to unify Japan after many years of war. The huge castle took two years to build, with a crew of 20,000 to 30,000 working daily. The stone walls for the main, secondary and tertiary enclosures measure about 12 km in length.