The supreme justice of Egypt's Supreme Constitutional Court has been sworn in as the nation's interim president, replacing the Islamist Mohammed Morsi who was ousted by the military.

Fireworks and shouts of joy emanate from Tahrir Square after a broadcast by the head of the Egyptian military confirming that they will temporarily be taking over from the country's first democratically elected president Mohammed Morsi (Spencer Platt/Getty Images)

Adly Mansour was sworn in Thursday at the Constitutional Court in a ceremony broadcast live on state television.

According to military decree, Mansour will serve as Egypt's interim leader until a new president is elected. A date for that vote has yet to be set.

Manosur's assumption of office comes a day after the military deposed Morsi, who took office a year ago as Egypt's first democratically elected president.

The military moved to oust Morsi after millions of Egyptians took to the streets this week to demand his resignation.

Morsi is under house arrest at an undisclosed location.

Non-essential diplomats pulling out of Egypt

CARO (AP) — The Obama administration says it'll have to review the $1.5 billion in annual aid it gives to Egypt after its military ousted the country's first democratically elected leader.

Mohammed Morsi was removed from power Wednesday, after days of violent protests.

An interim president is to be installed soon.

The U.S. State Department is ordering all of its nonessential diplomats and their families to leave Egypt.