What is it called when a military takes over a country?

Martial Law is when the High ranking generals and military take official control of a country and its government.