Denim initially gained popularity in 1873 when Jacob W. Davis, a tailor from Nevada, manufactured the first pair of rivet-reinforced denim pants.