Ub is a town and municipality located in the Kolubara District of western Serbia. As of 2022, the population of the town is 6,684, while population of the municipality is 25,780 inhabitants.