In 1632, the Haarlemmertrekvaart, a canal from Amsterdam to Haarlem, opened for passenger traffic by trekschuit (towed barges).
At the halfway point the passengers needed to disembark and change boats.
A sugar factory built in the 19th century was run by CSM Suiker fabriek from 1919 onwards.
With the construction of the North Sea Canal, a channel was dug through the IJ and lined with dikes, after which the remaining portions of the IJ Bay were reclaimed and turned into polders.
As a result, the village of Ruigoord, formerly an island of the same name, borders Halfweg in the north, as does the town of Zwanenburg in the south.