Fertile land and plentiful water drew settlers to this area as early as the 1840s, and by 1876 this part of Collin County was well populated when the Houston and Texas Central Railroad built a water supply stop on Cottonwood Creek near this site. The stop and newly created town lots established a center of commerce for local farmers and their families, providing better equipment and broader markets for agricultural production, and the surrounding open prairie soon developed into small family farms. The Houston and Texas Central Railroad filed documents to create the town of Allen from the James L. Read survey in 1876, naming it for Ebenezer Allen, a former Republic and State of Texas attorney general and a founder of the railroad. A dry goods store, barber shop, and school soon opened in the rapidly growing town. Sam Bass reportedly led an outlaw gang that robbed the Allen Depot on February 22, 1878, probably the first successful train robbery in Texas. By 1884 Allen had three churches, a flour mill, and a population of 350. In 1908 the Texas Traction Company built an electric railway through town called the Interurban, and the population reached 550 by 1915. Allen was incorporated in 1953 with 400 residents. Electric railway service ended in 1948, but railway freight service continued. Strong economic growth in the Dallas-Fort Worth area helped the town's population grow to more than 19,000 in the 1990s.