The Keystone Subdivision is a railroad line owned and operated by CSX Transportation in the U.S. states of Maryland and Pennsylvania. The line runs from Cumberland, Maryland, west to McKeesport, Pennsylvania, (near Pittsburgh) along a former Baltimore and Ohio Railroad (B&O) line. The line includes the well-known Sand Patch Grade over the Allegheny Mountains. Amtrak's Capitol Limited uses the Keystone Subdivision.