Montgomery County is a county in the U.S. state of Maryland, situated just to the north of Washington, D.C., and southwest of the city of Baltimore