It is easy for landlords and tenants to end a month-to-month tenancy in Maryland. (The situation is more complicated when it comes to breaking a fixed-term lease.)
Except for some properties covered by rent control in Maryland, your landlord does not need to give you a reason (although acting on discriminatory or retaliatory motives is illegal). A landlord can simply give you a written notice to move, allowing you one month as required by Maryland law and specifying the date on which your tenancy will end. Montgomery County (excluding single-family rentals) and Baltimore City are exceptions—the landlord must provide two months’ notice to end a tenancy in these communities.
Your landlord may legally provide less notice in specific circumstances--for example, if you have not paid rent, if you have violated other terms of your rental agreement (for example, bringing in an unauthorized tenant), or if you have violated basic responsibilities imposed by law (such as by dealing drugs on the rental property).
It is equally easy for tenants in Maryland to get out of a month-to-month rental agreement. You must provide the same amount of notice (usually one month) as the landlord (unless your rental agreement provides for a shorter amount of notice). Be sure to check your rental agreement which may require that your notice to end the tenancy be given on the first of the month or on another specific date.
In some situations, you may be able to move out with less (or no) notice—for example, if your landlord seriously violates the rental agreement or fails to fulfill legal responsibilities affecting your health or safety.
Check Maryland state law (Md. Code Ann. [Real Prop.] § 8-402(b)(3), (b)(4)) for the exact rules and procedures for how landlords must prepare and serve termination notices and for any special rules regarding how tenants must provide notice. See the Laws and Legal Research section of Nolo for advice on finding and reading statutes and court decisions.
The Maryland Attorney General landlord-tenant guide may also have useful information on how month-to-month tenancies end.