Williams County is located on the western border of the U.S. state of North Dakota, next to Montana. As of the 2020 census, the population was 40,950, making it the fifth most populous county in North Dakota, and was estimated to be 40,763 in 2024. Its county seat is Williston.