Built by Ieyasu Tokugawa in 1603 for his occasional , reluctant visits to Kyoto ( under imperial command ) , the castle was taken over by the Emperor Meiji after the restoration of 1868 .
The castle was built by Ieyasu Tokugawa in 1603 .