Martial Law can only be declared where the civil courts are no longer operational.
https://www.militarytimes.com/news/your-military/2020/10/23/how-the-president-could-invoke-martial-law/
martial law & insurrection