Nijo Castle in Kyoto was built in 1603 and it today owned by the city. It is surrounded by a moat and and defensive wall with towers.