You can still find locks in the Amsterdam canals. They used to protect the city from flooding when the port was connected with the Zuiderzee( Southern Sea). The leaning house used to be the lock keeper’s house, nowadays it houses a bar called de de Sluyswacht.