To fight foreign rule and improve peasant conditions.