If you are the spouse of a nonresident service member and you are in Maryland because of military orders, you stay a nonresident for state tax purposes and pay no Maryland tax on the wages you earn here.
File a revised Maryland Employee’s Withholding Exemption Certificate (MW507) with your employer, together with Form MW507M, the exemption from Maryland withholding for a qualified civilian spouse.
Your spouse’s military orders assigning them to Maryland, proof of your shared state of legal residence, and the completed MW507 and MW507M forms.