It was understandable, then, for the president to take control of the situation, and a tool for doing so is by imposing martial law.
Section 18, Article VII of the 1987 Constitution states that:
This is not the Marcos Martial Law, in which the president preempted everyone from reacting adversely, cutting the voice of the legislature and cowing the Judiciary into falling in line.
In the present constitution, the Congress shall convene and may revoke or approve or extend the proclamation. The Supreme Court, in turn, may review the the proclamation.
It is thus imperative for these two branches to not just meekly dance to the tune of the executive and check the propriety and legality of the martial law declaration.
Martial law is not inherently evil. If it were, the framers of the 1987 Constitution would have removed such power entirely, especially considering the country's wounds from the tyranny of martial law were still fresh then. It is a necessary tool for extreme situations such as invasion or rebellion, which is, depending on your viewpoint, is happening now.
On the part of all the people, and not just the Congress and Judiciary, we have to remain extra vigilant in order that the depth, breadth, and duration of the martial law are just enough to restore order in Marawi City.