In 1417, William made an attempt to recapture Gorinchem. He laid siege to the city. William and his Cod allies managed to enter the city. However, in the narrow streets around "Revetsteeg", he was mortally wounded. He died on the spot.