Eloy is a city in Pinal County, Arizona, United States, approximately 50 miles (80 km) northwest of Tucson and about 65 miles (105 km) southeast of Phoenix. According to the U.S. Census estimates in 2019, the population of the city is 19,625.
In 1880, as tracks were being laid for the Southern Pacific Railroad, a small number of boxcars were used as a camp for railroad workers. It was discovered that cotton could be grown in the area's climate. In 1902, the Southern Pacific Railroad named the area train stop Eloy, an acronym for East Line Of Yuma. Alternately, there is a legend that the area was initially called Eloi, after a railroad employee looked around at the barren desert and said, "Eloi, Eloi, lama sabachthani?" (Aramaic and Hebrew for "My God, my God, why hast thou forsaken me?"). A town called Cotton City was established in 1918, but in 1919 the newly established post office rejected that name in favor of Eloy. As part of Pinal County, the city incorporated in 1949.