Democrat Anthony G. Brown and Republican Larry Hogan won endorsements of their Maryland gubernatorial bids Wednesday from the Maryland Association of Realtors.

“Both candidates demonstrated keen knowledge of housing issues and the important role real estate plays in Maryland’s economy,” said Ilene Kessler, who chaired the interview committee for the association.

Brown, the state’s lieutenant governor, faces Attorney General Douglas F. Gansler and Del. Heather R. Mizeur in the June 24 Democratic primary.

Hogan, who owns an Anne Arundel real estate company, faces Harford County Executive David R. Craig, Del. Ronald A. George (Anne Arundel) and Charles County businessman Charles Lollar in the Republican primary.

The association, which says it represents 22,000 real-estate professionals, also announced its support of Sen. Brian E. Frosh (D-Montgomery) for attorney general and Peter Franchot for re-election as comptroller.