MD 23 turns north and joins MD 165 in a concurrency to the center of Jarrettsville. MD 165 continues north as Federal Hill Road and MD 23 turns west onto Norrisville Road; the east leg of the intersection is Jarrettsville Road. MD 23 heads west through farmland and intersects MD 146 (Jarrettsville Pike) and Madonna Road in the village of Madonna. The state highway gradually curves to the north through Shawsville, where MD 23 intersects two highways that head west into Baltimore County, MD 138 (Troyer Road) and MD 439 (Old York Road). The state highway makes a sharp, curvaceous descent to a crossing of Deer Creek, next to which is the historic Ivory Mills complex. MD 23 ascends out of the forested creek valley into Norrisville and meets the north end of MD 136 (Harkins Road). The state highway continues north to just south of the Pennsylvania state line. MD 23 turns west and closely parallels the state line for about before the highway veers northwest to cross the border. The highway continues north as PA 24 (Barrens Road) toward Stewartstown.