Who declared himself emperor?