He will face Republican Dan Cox in November’s general election.
Ivey defeated Donna Edwards, a former Congress member who held the seat from 2008 to 2017.
Rep. Anthony Brown, former Anne Arundel council member Michael Peroutka win attorney general primaries
In strongly Democratic Maryland, the winner of the Democratic attorney general primary race has not lost the general election since 1952.
Lierman defeated Bowie Mayor Tim Adams, while Glassman ran unopposed.
Cox defeated Hogan-backed Kelly Schulz in the Republican primary race for governor.
Hogan has resisted calls to release $3.5 million in funding that would increase abortion care in the state.
Schools do not have to get approval from the Board of Regents.
Maryland will likely continue to uphold state protections for abortion after efforts to expand abortion access this legislative session.
The primary elections will take place July 19, with early voting set to begin July 7.
Some of the bills would have mandated body cameras for all law enforcement officers in the state and clarified protocols for police training.