Obeying tyrants as a religious duty

not always muslims fought civil wars since the first generation yet they were the dominant power for a long time.

true these measures shud be started first but if they dont work then what shud we do suffer in tyranny ?

i dont see how a dictate consistent with shariah becomes tyrannical regardless of what people might think

what about the ruler ? is there any accountability for a ruler ? is he under any checks and balances
and what are we to do if he trangresses them ?