The Frederick Branch is a railroad line in Frederick County, Maryland. It was built by the Baltimore and Ohio Railroad (B&O) in 1831, and is now owned by the Maryland Department of Transportation (MDOT). The branch extends between Frederick Junctiona wye with the Old Main Line Subdivision of CSX Transportation on the west side of the Monocacy Riverand its terminus at East Street in downtown Frederick, Maryland. The wye at Frederick Junction was the first example of its kind in the United States and is still in use today. History The branch opened in December 1831 with a ceremonial train, pulled by horses, carrying directors of the B&O and various politicians from Baltimore. In planning the route of the Old Main Line, the B&O decided against building the main line directly through Frederick, preferring instead to take advantage of a valley grade to the south of the city. The city's first train station, built in 1832 at South Carroll Street, was the B&O's second oldest permanent station, and was used mainly for freight. A new passenger depot was built in 1854 at East All Saints and Market Streets, and the old station continued as a freight station until circa 1910. A station at Frederick Junction was opened after the Civil War and operated through the World War II era. The branch was initially used by the many mills in the city to rapidly ship flour to Baltimore for sale. Outbound freight traffic later diversified to include milk, bricks, limestone, and some manufactured goods from Frederick. The branch connected with two other railroads in downtown Frederick: first, the Frederick and Pennsylvania Line Railroad Company in 1872, (later part of the Pennsylvania Railroad) connected near East Street and South Street, and then in 1896, the Hagerstown and Frederick Railway connected near the small B&O rail yard and terminal along South Street. During the Great Depression of the 1930s, traffic on the Frederick Branch decreased. In 1933, the B&O began using gas-electric rail cars to operate its commuter trains between Frederick and Baltimore. Passenger service lasted until November 1949, and the branch gradually fell into disuse as local business customers switched to trucks to ship their products. In 1987, the B&O assets, including the Frederick Branch, were acquired by CSX. , the only remaining freight customer on the branch was Willard Agri Services of Frederick, located on Wisner Street. This service ended in