Why did the election of 1910 in Mexico cause a revolt?

Díaz left the country during the election and did not return.
Díaz prevented a fair election and had his opponent jailed.
Díaz resigned from office just before the election took place.
Díaz’s opponent cheated in the election and people got angry.