Many Scottish soldiers, infantry and cavalry, found themselves engaged in the various wars that are collectively called the Thirty Years' War and Robert Douglas was one of these. In 1627 he was received as a page in the Swedish service under John Casimir, Count Palatine of Kleeburg, castellan of Stegeborg Castle, brother-in-law of King Gustav II Adolf. In 1630, when Sweden joined the Thirty Years' War, Douglas followed the main army into Germany. Although a competent military commander, he only began to earn some notoriety in the aftermath of the Peace of Prague. Then serving as a lieutenant colonel, Douglas had been tasked with the defence of Egeln in Saxony, and so was left very much within the territory of the newly hostile Elector Johan Georg who had defected to the Empire. Douglas spectacularly broke out rather than change sides and managed to return with most of his men through hostile lines to Swedish controlled territory He participated in the Battle of Wittstock the following year, now with the rank of full colonel and actually in command of two cavalry regiments. With these he participated in the famous flanking charge led by Lieutenant General James King, the senior cavalry commander in Alexander Leslie's Army of the Weser. Unlike many of his countrymen who opted to return to Scotland to participate in the Bishops' Wars against Charles I, Douglas opted or was selected to remain behind in Swedish service. In March 1638 he was campaigning in the region of Delitzsch in the army of Johan Banér, getting complaints from the town for his alleged 'deprivations'. Within days units under Major General Adam von Pfuel pressed into Thuringia, with Douglas’s regiment among them. It was during this period that the Scot captured the Imperial Fälttygmästare Salis and his regiments, who were heading towards Eger in Bohemia. He impressed the captured troops into his service and with them participated at the Swedish victory at battle of Chemnitz. By 1642, Douglas served in the army of Field Marshal Lennart Torstensson under whom he campaigned in Silesia before participating at the battle of Leipzig where he was accredited with playing a significant part in the victory. For this and other services Douglas was promoted major general, though not without protest from some of his German co-commanders. Nevertheless, his reputation continued to grow. At the battle of Jankowitz in 1645, Douglas commanded the left wing of the Swedish army, with some twenty-three out of forty-seven of the cavalry units on the field under his control. In December 1646 Douglas received instructions to travel to Ulm as one of Sweden’s representatives to negotiate a ceasefire with Maximillian of Bavaria. This was eventually agreed on 14 March 1647. However, when Douglas returned to Sweden in June to brief the Riksråd on the progress of negotiations he delivered the news that the Bavarian truce had effectively expired. For his good offices as both soldier and negotiator, Douglas was promoted to the rank of lieutenant general at which station he saw out the remainder of the war, seeing his last main action at Zusmarshausen in May 1648. On the conclusion of hostilities, Douglas was tasked with the reduction and dismissal of the troops around Ulm and Schwaben. Queen Christina of Swedenennobled him as a baron in 1651, and on 28 May 1654, created him a count. In 1652, she made him the kingdom's Lord Master of the Horse. In the Polish Wars, Douglas was in the service of King Charles X. He was with the king at the battle of Warsaw in 1656. On 13 May 1657, the king promoted him to field marshal. He served between 1658-1661 as military governor of Estonia and Livonia. In 1660, he and the Swedes took Jacob, Duke of Courland as their prisoner. He also led the Swedish forces in the conquests of Valmiera and Mitau. Douglas was rewarded with numerous properties and fiefs in Sweden, such as Skänninge, Skälby, Zewen and Sannegården near Göteborg.