Permanent. Discard at any time, or when a new formation is played. Each Marine is +1 defense in Ranged Combat but -1 defense in Close Combat.
Don't bunch up, you'll make easy targets.