Jacksonville was designated as the first county seat in 1853. However, Jacksonville declined due to diminishing returns in the local goldfields and the construction in the 1880s of the Oregon and California Railroad. This railroad bypassed Jacksonville and instead went through Medford, located five miles (8 km) east of Jacksonville. Medford's prospects improved because of the location of the railroad and the accompanying commerce and development as Jacksonville continued its steady decline. Jacksonville fended off suggestions to move the county seat until 1927 when Medford was finally selected as the county seat.