From its founding, Batavia was planned in a well-defined layout. Three trenches were dug east of the Ciliwung River in 1619, its first Dutch-made canals. The canals were named (from south to north) Leeuwengracht, Groenegracht, and Steenhouwersgracht. The Castle area begins in a former field north of Steenhouwersgracht, in which a town market was established. The first church and town hall were built c. 1622 on the east bank of the river; Batavia's first combined church and town hall (replaced during the 1630s) was at .