The history of Carrboro is similar to the history of many mill towns in North Carolina and largely parallels the histories of the State University Railroad and the Alberta Cotton Mill. Located just west of Chapel Hill, Carrboro was originally known as West End. It was settled in 1882 near the terminus "in a vacant field" of the State University Railroad spur from University Station in Glenn, North Carolina. (State law required that the railway be at least from the university campus "to guard against possible damage to student morals and habits of study," or as it was more cynically put, "to discourage students from leaving on the weekends and spending their money elsewhere.) Settlement in West End increased after 1898 when Thomas F. Lloyd of Chapel Hill built a steam-powered grist mill near the depot. This would become the Alberta Cotton Mill, and in 1900 the town briefly called itself Lloydville in his honor.