When did Julius Caesar take over?

Julius Caesar was officially the man in power in 48 BC after the battle of Pharsalus when he defeated Pompey.