From empire to republic