When Maryland assigned state route numbers in 1927, MD 2 was designated between Solomons and Baltimore. The route followed Solomons Island Road from Solomons to west of Annapolis, where it ran concurrent with US 50 into the city on West Street. MD 2 passed through downtown Annapolis on College Avenue and King George Street before it left the city on the Severn River Bridge and continued north along Baltimore–Annapolis Boulevard to Glen Burnie. From Glen Burnie, MD 3 continued along Baltimore–Annapolis Boulevard while MD 2 headed north to Baltimore and connected to Potee Street. MD 2 was designated in Baltimore in 1939 to follow Hanover Street north to US 1.