Caesar was the dictator of the Roman Republic at the time . He had been declared dictator perpetuo ( dictator for life ) by the Senate . Caesar was the dictator of the Roman Republic at the time , having recently been declared dictator perpetuo by the Senate .