If you are temporarily out of Massachusetts and cannot get home before your driver’s licence expires, the Registry can issue a temporary licence good for up to 60 days past the expiry date. It can only be granted once, and not if your licence is in a non-renew status.
Contact the Registry of Motor Vehicles Driver Licensing Department and request a temporary licence, explaining that you are temporarily out of state.
Your military orders and your expiring Massachusetts driver’s licence details.