The Algerines encouraged by the delay of the French, rallied and made another attack upon them at Sidi Khalef early on the morning of the 24th. On this occasion but few Arabs and Kabyles appeared, and the action was sustained on the side of the Algerines, almost entirely by the Turks, the Moorish regulars, and the militia of the city, who had been at length induced to leave its walls. The assailants were spread out on a very extended line, which was immediately broken by the advance of the first division of the French army, with a part of the second in close column. A few discharges of artillery increased the confusion; the Algerines soon began to fly, and were pursued to the foot of the last range of hills which separated them from the city. On the summit of one of these heights, were the ruins of the Star Fort, which had been some years before destroyed, "because it commanded the Casauba, and consequently the city;" it was however used as a powder magazine, and the Africans on their retreat, fearing lest it should fall into the hands of the French, blew it up. The loss of men in this affair was trifling on each side. The only French officer dangerously wounded was Captain Amédée de Bourmont, the second of four sons of the General who accompanied him on the expedition; he received a ball in the head, while leading his company of Grenadiers to drive a body of Turks from a garden in which they had established themselves, and died on the 7th of July.

While this combat was going on, the remainder of the vessels from Palma, nearly three hundred in number, entered the bay of Sidi Ferruch. Their arrival determined Bourmont not to retire to his camp at Sidi Khalef, but to establish his first and second divisions five miles in advance of that spot, in the valley of Backshé-dere, so that the road might be completed, and the heavy artillery be brought as soon as landed to the immediate vicinity of the position on which it was to be employed. The third division was distributed between the main body and Sidi Ferruch, in order to protect the communications. This advantage was however dearly purchased; for during the four days passed in this situation, the French suffered greatly from the Algerine sharp-shooters, posted above them on the heights, and from two batteries which had been established on a point commanding the camp. In this way Bourmont acknowledges that seven hundred of his men were rendered unfit for duty within that period; he does not say how many were killed.

The necessary arrangements having been completed, and several battering pieces brought up to the rear of the French camp, Bourmont put his forces in motion before day on the 29th of June. Two brigades of d'Escar's division which had hitherto been little employed, were ordered to advance to the left and turn the positions of the Algerines on that side; on the right the same duty was to be performed by a part of Berthezéne's division, while Loverdo was to attack the enemy in the centre. They proceeded in silence, and having gained the summits of the first eminences unperceived, directed a terrible fire of artillery upon the Algerines, who having only small arms to oppose to it were soon thrown into confusion and put to flight. The Moors and Turks took refuge in the city and the surrounding fortifications, while the Arabs and Kabyles escaped along the seashore on the southeast, towards the interior of the country.

The French had now only to choose their positions from investing Algiers, which with all its defences lay before them. Besides the Casauba and batteries of the city, they had to encounter four fortresses. On the southeastern side near the sea, half a mile from the walls was Fort Babazon, westward of which, and one mile southward from the Casauba, was the Emperor's castle, presenting the most formidable impediment to the approach of the invaders. This castle was a mass of irregular brick buildings, disposed nearly in a square, the circumference of which was about five hundred yards. From the unevenness of the ground on which it was built, its walls were in some places sixty feet high, in others not more than twenty; they were six feet in thickness, and flanked by towers at the angles, but unprotected by a ditch or any outworks, except a few batteries which had been hastily thrown up on the side next the enemy. In the centre rose a large round tower of great height and strength, forming the keep or citadel, under which were the vaults containing the powder. On its ramparts were mounted one hundred and twenty large cannon, besides mortars and howitzers, and it was defended by fifteen hundred Turks well acquainted with the use of artillery, under the command of the Hasnagee or Treasurer who had promised to die rather than surrender. As it overlooked the Casauba and the whole city, it was clear that an enemy in possession of this spot and provided with artillery, could soon reduce the place to dust; but it was itself commanded in a like manner, by several heights within the distance of a thousand yards, which were in the hands of the French. The next fortress was the Sittit Akoleit or Fort of twenty-four hours, half a mile north of the city; and lastly a work called the English fort was erected on the seashore near Point Pescada, a headland about one-third of the way between Algiers and Cape Caxine. The object of the French was to reduce the Emperor's castle as soon as possible, and in the mean time to confine the Algerines within their walls as well as to prevent them from receiving succors. For the latter purposes, it was necessary to extend their lines much more than would have been compatible with safety, in presence of a foe well acquainted with military science; trusting however to the ignorance and fears of his enemies, Bourmont did not hesitate to spread out his forces, even at the risk of having one of his wings cut off by a sudden sortie. Loverdo in consequence established his division on a height within five hundred yards of the Emperor's castle; Berthezéne changed his position from the right to the centre, occupying the sides of mount Boujereah the heights immediately west of the city; while d'Escars on the extreme left, overlooked the Sittit Akoleit, and the English fort. These positions were all taken before two o'clock in the day.

On the right of Berthezéne's corps, was the country house in which the foreign consuls were assembled under the flag of the United States. As its situation gave it importance, General Achard who commanded the second brigade determined to occupy it, and even to erect a battery in front of it. Major Lee the Commander in Chief of the consular garrison, formally protested against his doing either, maintaining that the flag which waved over the spot rendered it neutral ground. The French General did not seem much inclined to yield to this reasoning; but when it was also alleged that the erection of the battery would draw the fire of the Algerine forts upon the house, in which a number of females were collected, as well as the representatives of several nations friendly to France, he agreed to dispense with the execution of that part of his order, but his soldiers were quartered on the premises, and his officers received at the table of the consuls. The latter were, as might have been expected, polished and gallant men; the soldiers were very unruly, and by no means merited the praises which have been bestowed on their moderation and good conduct, in the despatches of their commander and the accounts of the historians.

The night of the 29th passed without any attack on the lines of the French. Before morning the engineers under Valazé had opened a trench within five hundred yards of the Emperor's castle, and various country houses situated in the vicinity of that fortress, were armed with heavy pieces and converted into batteries. As soon as this was perceived from the castle, a fire was opened upon the laborers; but they were already too well protected by the works which had been thrown up, and few of the balls took effect. A sortie was next made by the garrison, and for a moment they succeeded in occupying the house of the Swedish Consul, in which a French corps had been stationed; they were however immediately driven out, and forced to retire to their own walls.

In order to divert the attention of the Algerines during the progress of the works, false attacks were made on their marine defences by the ships of the French squadron. On the 1st of July Admiral Rosamel, with a portion of the naval force, passed across the entrance of the bay, and opened a fire on the batteries, which after some time was returned. Not the slightest damage appears to have been received by either party, the French keeping, as the Admiral says, "à grande portée de canon," that is to say, nearly out of the reach of the fire of the batteries; one bomb is stated to have fallen in the vicinity of Rosamel's ship. The effect of this movement not answering the expectations of the French, as it did not induce the Algerines to suspend their fires on the investing force, it was determined that a more formidable display should be made. Accordingly on the 3d, Admiral Duperré made his appearance before the place, with seven sail of the line, fifteen frigates, six bomb vessels, and two steamers. The frigate Belloné which led the way, approached the batteries and fired on them, as she passed with much gallantry; the other ships kept farther off, and as they came opposite the Mole, retired beyond the reach of the guns, where they continued for some hours, during which each party poured tons of shot harmless into the sea. As the Admiral states in his despatch, "none of his ships suffered any apparent damage, or notable less of men," except from the usual "bursting of a gun on board the Provence, by which ten were killed and fifteen wounded."

The high character for courage and skill which Admiral Duperré has acquired by his long and distinguished services, precludes the possibility of imagining that there could have been any want of either of those qualities on his part in this affair. Indeed he would have been most blameable had he exposed his ships and men to the fire of the fortresses which extend in front of Algiers, at a period when the success of the expedition was certain. The "moral effect" of which the Admiral speaks in his despatch, might have been produced to an equal or greater extent, by the mere display of the forces in the bay; the only physical result of the cannonade, was the abandonment of some batteries, on Point Pescada, which were in consequence occupied by d'Escar's forces. The whole attack if it may be so termed, was probably only intended to repress any feelings of jealousy which may have arisen in the minds of the naval officers and men, by thus affording them at least an ostensible right to share with the army the glory of reducing Algiers.