The Republic was thus terminated by Mark Antony's final defeat along with his ally Cleopatra and his lover in the Battle of Actium in 31BC and by the Senate granting Octavian extraordinary powers as Augustus in 27BC – affected as his first Roman emperor.