In an attempt to regain control of the state, Confederates wished to recapture the capital at Baton Rouge. Maj. Gen. John C. Breckinridge planned a combined land/water expedition with his corps and CSS Ram Arkansas. Advancing west from Camp Moore, the Confederate land forces, coming from the east, were only ten miles away on August 4. They reached the outskirts of the capital early in the morning, formed for an attack in two divisions, and began to drive back each Union unit they encountered. Then, Union gunboats in the river began shelling the Confederates. The Arkansas could have neutralized the Union gunboats, but her engines failed and she did not participate in the battle. Federal land forces, in the meantime, fell back to a more defensible line, and the Union commander, Brig. Gen. Thomas Williams, was killed soon after. The new commander, Col. Thomas W. Cahill, ordered a retreat to a prepared defensive line nearer the river and within the gunboats' protection. Rebels assailed the new line, but finally the Federals forced them to retire. The next day the Arkansas's engines failed again as she closed on the Union gunboats; she was blown up and scuttled by her crew. The Confederates failed to recapture the state capital.