The lock at Westzaan used to spill water out into the sea, as the IJ was openly connected to the Zuiderzee in those days. In the second half of the nineteenth century the Noordzeekanaal was built and most of the expanse of the IJ was turned into arable lands.