Before you can file for divorce in Maryland, you have to meet the state's residency requirement. If the grounds for divorce occurred in Maryland, either spouse must be a resident at filing. If the grounds occurred outside Maryland, at least one spouse must have lived in Maryland for 6 months before filing.