What powers does the president have to use military to quell domestic unrest?

President Trump vowed Sunday night that, if necessary, he would use the U.S. military to assist in controlling the looting and violent protests taking place throughout the country, which has raised questions on what degree the armed forces can legally get involved with domestic law enforcement.
Go to Source