The resulting civil war in Poland (1704-1706) did not go well for August. His attempt to regain control in Poland–Lithuania was thwarted by Charles XII in the Battle of Grodno and by Carl Gustav Rehnskiöld in the Battle of Fraustadt, both in the first months of 1706. As a consequence of Fraustadt, the Saxon electorate was virtually undefended, and when Charles XII combined his forces with Rehskiöld and moved through Silesia to occupy it, he met no resistance.