Dispirited by his reverse, William raised the siege, ordered his army into winter quarters, and after handing over the command to Ginkell, a Dutch general, returned to England after a campaign in which he had scored only one marked success—the victory at the Boyne. He had failed to capture Athlone and Limerick, and, with the exception of Waterford, all the ports in the south and west were still open to the French navy. In September, however, the arrival of Marlborough with an expedition from England improved the situation: Cork and Kinsale surrendered, and thus the harbours of Limerick and Galway alone remained available for the enemy’s operations. Ginkell’s first step was to establish himself on a line which, starting at Ballyshannon in the north-west, ran through Enniskillen, Longford, Mullingar, Cashel, and Fermoy to Castletown-Berehaven in the south-west. The regiment was ordered to Mullingar, where it passed the winter—very unpleasantly, according to Stearne, who states that, “in the month of December our garrison being reinforced by several regiments of Horse and Foot, marched towards the enemy’s frontier, where after having fatigued the troops for upwards of three months in this bad season of the year in ravaging and burning the country we returned to our quarters.”

Ginkell opened the campaign of 1691 by an attack on Athlone, a town built on both sides of the Shannon, and enclosed by walls, not in good condition but still by no means to be despised. On the right or Connaught bank a grim old castle frowned down upon a stone bridge, the only permanent means of communication across the river, for though there was a ford it was practicable only in very dry weather. After a short cannonade, Ginkell breached and stormed the defences on the Leinster side of the river, and, driving the enemy before him across the bridge, made himself master of the eastern half of Athlone. But now his real difficulties began. Batteries bristled on the bank above the ford; the guns of the castle commanded the bridge, which was so narrow that a few men could hold it against a regiment; and General St Ruth, a French officer of great experience, from his camp hard by could reinforce the garrison without hindrance from the besiegers. Ginkell rapidly threw up batteries, and opened so vigorous a fire with fifty guns and mortars that one side of the castle crumbled away and the houses on the Connaught bank were knocked to pieces. But until he had crossed the river he could not close with his enemy; his pontoons were far behind him, and he had no transport to bring them to the front; and the defence of the bridge was so stubborn that he gained ground there only a few inches at a time. St Ruth scoffed at the idea of the place being in serious danger, decrying Ginkell as an old soldier who ought to know better than to waste time and men on a hopeless enterprise. “His master,” he said, “ought to hang him for trying to take Athlone, as my master ought to hang me if I lose it.” But the Dutch general determined to ascertain if the river was fordable, and, in the words of Stearne, instead of calling for volunteers,

“promised three Danish soldiers who lay under sentence of death, their lives and a reward if they would attempt fording the river, which they gladly accepted, and at noonday put on armour, and entered the river a little below the bridge, and went at some distance from each other; the enemy took them for deserters, and we from our trenches fired seemingly at them, but over their heads at the enemy; when they had passed the depth of the water, and almost on the other side, they turned back, which when the enemy perceived they fired at them as hard as they could, but our cannon which was reserved for that purpose, as also our small shot, fired so briskly upon them that they could not hold up their heads to take aim at the men, by which they were saved, two being only slightly wounded. The General finding the river fordable (which it had not been for many years) resolved to try and pass it, upon which he gave orders for 40 Grenadiers from each company and 80 choice men out of each Battalion of the whole army to march as privately as possible into the trenches, and the whole army to be under arms to sustain the attack should there be occasion.

“On the 20th June[12] the detachments marched into the trenches (I being one of the Captains who commanded ours) with all the privacy we could, but notwithstanding all our caution, St Ruth had notice of our motion and design by the appearance of crowds of people on the hills to see the action, upon which he marched down his whole army to the bank of his part of the town, and filled the Castle and trenches with as many men as it could well hold; our General perceiving this, put off the attack till another time, ordering our detachments back to Camp, but at the same time gave private orders that not a man should stir from his Regiment, or be put on any other duty, but to be all ready at a minute’s warning. St Ruth seeing us draw off, was persuaded that our General dare not pass the River at this time, and in this security marched his Army back to Camp, leaving only a slight body of men to guard their works and the Castle. The next day a soldier of our Army (whether sent by the General, or he went of himself, I can’t say) went over to the enemy and was carry’d before St Ruth, and told him that the common report in our Camp was that the General finding it was not practicable to pass the River at this time resolved to try what he could do at Banagher which lay ten miles down the River, and that everything was getting ready for the march. St Ruth, easily persuaded with this notion, and finding all things very quiet in our Camp, made a splendid entertainment for all the Ladies and Gentlemen, the Officers of the Town, and the Camp. The same day, being 22nd June, our General sent private orders along the Line for all the detachments to march directly into the trenches, and to keep under all the cover they could, at the same time he posted several sentries on the hills to prevent anybody appearing to the enemy. About 3 o’clock, when St Ruth was at the height of his merryment, we began the attack by jumping into the River, and whilst we were wading over, our Cannon and small shot played with great fury over our heads on the enemy, insomuch that they did us but little hurt in passing, and when we got over they made but little or no resistance but fled immediately.

“At the same time we jumped into the River, part of our detachments attacked the Bridge, and laid planks over the arch that had been broken down upon our taking the first town, so that before St Ruth had any account of our design we were in possession of the town; however he marched his army down to try if he could force us back again, but he committed a grand error which he found out too late, and that was leaving the works at the back of the town stand, which became a fortification against himself, for had it not been for this, we should never have been able to maintain the town against his army, as we were not in possession of the Castle. When St Ruth found there was no forcing us back without a formal siege he returned to his camp, and those in the Castle seeing him march off immediately surrendered at discretion, and next day very early St Ruth decamped and marched off with great precipitation. In this action we had only 27 men killed, and about as many wounded, and not one Officer of note hurt.”

Ginkell now proposed to take the town of Galway and then turn southwards against Limerick, but before this plan could be put into execution it was necessary to dislodge St Ruth from the strong defensive position he had taken up near Ballinasloe, where he was determined to fight a pitched battle in the hope of retrieving the reputation he had lost on the banks of the Shannon. His left rested on the castle of Aughrim, a few miles south of Ballinasloe; his right was marked by the village of Urachree; his centre ran along the slopes of a green and fertile hill, well suited for counter-attacks by horse and foot. Much of the ground he occupied was surrounded by bogs, crossed by a few tracks, of which only two were fit for cavalry, while all were under the fire of his guns. Between the foot of the hill and the bogs were many little patches of cultivation enclosed by hedges and ditches, some of which St Ruth levelled to allow his cavalry free movement, while he left others intact in order to give cover to his marksmen, to break the enemy’s formations, and to conceal the movement of his troops upon the field of battle. The infantry held the centre; the cavalry were on the flanks with a strong reserve in rear of the left under Sarsfield, who had specific instructions not to move without a distinct order from St Ruth himself. On July 11, the armies, each about 20,000 strong, were within touch, but owing to a heavy fog it was not until the afternoon of the 12th that the battle began with a sharp skirmish, which revealed to Ginkell the strength of St Ruth’s position, and convinced him that his only hope of success lay in turning the enemy’s left. He accordingly made a feigned attack upon the Frenchman’s right, launched the remainder of his infantry against the centre and left, and sent his cavalry to force their way past the Castle of Aughrim. The troops directed against the centre were to halt when they had crossed the bog, and on no account to push on until the column on their right was safely over the quagmire and the cavalry had turned the enemy at Aughrim. But when the soldiers, after floundering thigh-deep in mud and slime, reached firm ground they got out of hand, and forgetting their orders rushed forward, carrying everything before them until a sudden charge of cavalry swept them backwards in confusion, while the column for which they should have waited was still struggling in the bog. When this supporting column, of which the XVIIIth regiment formed part, had scrambled through the quagmire and re-formed its ranks, it moved towards the hill over a part of the field apparently deserted by the enemy, but really filled with sharpshooters, who, hidden in hedges and ditches, with admirable coolness held their fire until the leading companies were within twenty yards of them. Then a storm of bullets smote the head of the column; men dropped in scores, and for a moment the advance was checked, but the troops quickly rallied, and hurling themselves against the first hedge carried it against a resolute defence. Hedge after hedge, ditch after ditch, were charged and won, but by the time the last obstacle was surmounted the infantry had fallen into great confusion: the regiments “were so intermingled together that the officers were at a loss what to do,” and at that moment St Ruth’s cavalry came thundering down upon them. Under this charge the disorganised infantry gave way, and were being driven backwards into the bog, when St Ruth’s horsemen were themselves assailed in rear by some of Ginkell’s cavalry, who, after a daring march and still more daring passage of a stream under the walls of Aughrim Castle, reached the battlefield in time to save the foot soldiers from annihilation. During this cavalry combat occurred an interesting instance of the value of steady barrack-square drill. Throughout the winter of 1690-91 the infantry had been practised in regaining its formation rapidly after a charge, and now, when relieved from the pressure of the enemy, the battalions re-formed with comparative ease, and then attacked along the whole line. At this moment victory trembled in the balance, for though the losses on both sides had been heavy, the defenders, on the whole, had had the best of the day, and in Sarsfield’s strong body of cavalry they possessed a reserve which had not yet been called into action. Had Sarsfield then struck into the battle his troopers might have turned the scale, but he was fettered by his instructions not to move except on St Ruth’s own order, and St Ruth, struck down by a stray cannon-ball, was lying a headless corpse upon the ground. The absence of the French general’s directing hand was soon felt, though his death was concealed as long as possible; and when the attacking infantry began to gain ground steadily, and the cavalry turning movement was fully developed, the men who for hours had so valiantly defended their position lost heart and began to fall back in disorder. Then their discipline failed them, and they broke, rushing in panic towards Limerick and Galway, with Ginkell’s cavalry and dragoons spurring fiercely after them.

The losses in this battle were very heavy. In William’s army 73 officers were killed and 109 wounded; of the other ranks 600 were killed and 908 wounded. The XVIIIth escaped lightly: only one officer, Captain —— Butler was killed; a major, a captain, and two subalterns were wounded; among the non-commissioned officers and men seven were killed and eight wounded.[13] On the subject of the casualties in the army commanded by St Ruth historians differ widely; but 7000 appears to be the number fixed upon by those least given to exaggeration. Whatever the actual figures were, however, there can be no doubt that James’s soldiers were so completely routed that in their retreat they strewed the roads with their discarded weapons. A reward of sixpence was offered for every musket brought into Ginkell’s camp; in a short time so many waggon-loads were collected that the price was reduced to twopence, and great numbers of firearms still came in.[14] The dispersal of St Ruth’s army was the death-blow to the Stuart cause: Galway made little resistance, and though the garrison of Limerick fought stoutly for a month it was obliged to surrender on October 3, 1691. The French officers were allowed to return to their own country, accompanied by those of James’s soldiers who wished to enter the French army, and with their departure ceased all organised opposition in Ireland to the rule of William III., who was thus free to transfer his troops to the Low Countries.

The regiment, however, did not go abroad at once. After wintering at Waterford it was ordered in the spring of 1692 to Portsmouth, to reinforce the garrison of England against an invasion threatened by Louis XIV., and after the French fleet had been beaten at the battle of Cape La Hogue the XVIIIth was one of the regiments selected for a raid against the seaport towns of France; but the coast proved so well guarded that it was impossible to land, and the transports sailed to the Downs and thence to Ostend, where the troops disembarked and marched towards the towns of Furnes and Dixmude, which the French evacuated without waiting to be attacked. While employed in strengthening the walls of Dixmude the XVIIIth had a curious experience: there was an earthquake, so violent that the soldiers thought the French were blowing up the place with hidden mines, while the Flemish peasants, who were working as navvies, became paralysed with terror and declared that the end of the world was come. In a few weeks the greater part of the troops re-embarked for England, but not all reached land in safety, for a great storm scattered the transports, several of which went to the bottom. The XVIIIth regiment, however, was fortunate enough to escape all loss.

In the course of the winter Lord Meath retired,[15] and was succeeded in the colonelcy by Lieutenant-Colonel Frederick Hamilton; Major Ormsby became Lieutenant-Colonel, and Captain Richard Stearne was promoted to the Majority. In 1693, the regiment, which now was known as Frederick Hamilton’s, was turned for a few months into a sea-going corps.

“In May, 1693, we marched to Portsmouth, and embarked on board the Grand Fleet, commanded by three joynt Admirals (viz., Sir Ralph Delaval, Sir Cloudesley Shovel, and Admiral Killigrew) when we served this summer as Marines. Our rendezvous was Spithead; in June we sailed to Torbay, where we waited for the Fleet which was to go under the command of Sir George Rooke who had twenty Men of War to convoy them up the Mediterranean. About the latter end of June Sir George joyned us, and the whole Fleet set sail together, and was looked upon to be the greatest that had been in one sea for many years; there being in all with Men of War and Merchantmen, English and Dutch, near 800 sail: the Men of War with their tenders stretching in one line between the Coast of France and the Merchantmen. The Grand Fleet kept Sir George company till they passed the Bay of Biscay, being the utmost limits of our Admirals’ orders, notwithstanding they very well knew that the French Fleet had sailed out of Brest, and was lying before them to intercept Sir George. Yet their orders were such that they dare not sail any farther, but then parted and returned to Torbay.