1643 and was captured at Tuttlingen in November of that year. Upon his release, and upon the death of James Campbell, 1st Earl of Irvine, Moray took over command of the Garde Écossaise. Moray helped to persuade the Prince of Wales, the future Charles II, to visit Scotland for his coronation as King of Scots at Scone on 1 January 1651. Charles then invaded England from Scotland, but was defeated at the Battle of Worcester in September 1651, and forced to escape to France. In Scotland, Moray became Lord Justice Clerk, a Privy Councillor, and a Lord of Session in 1651. He married Sophia Lindsay, daughter of David Lindsay, 1st Lord Balcarres, but she died in childbirth on 2 January 1653 and the child was stillborn. Moray joined a Scottish uprising in 1653 which was suppressed by Cromwell, and Moray returned to the continent in 1654. Moray spent time in Bruges in 1656, then in Maastricht until 1659, when he joined Charles in Paris. Founding of the Royal Society Following the restoration of Charles II, Moray was one of the founders of the Royal Society at its first formal meeting on Wednesday 28 November 1660, at the premises of Gresham College on Bishopsgate, at which Christopher Wren, Gresham Professor of Astronomy, delivered a lecture. The twelve in attendance were an interesting mix of four Royalists (William Brouncker, 2nd Viscount Brouncker, Alexander Bruce, 2nd Earl of Kincardine, Sir Paul Neile, William Balle) and six Parliamentarians (John Wilkins, Robert Boyle, Jonathan Goddard, William Petty, Lawrence Rook, Christopher Wren) and two others with less fixed (or more flexible) views, Abraham Hill and Moray. Moray was influential in gaining the new society its Royal Charter and formulating its statutes and regulations. Moray was the first President of the society which holds its Annual General Meeting on Saint Andrew's Day (30 November) the Patron Saint of Scotland in apparent acknowledgement of Moray's importance in the formation of the society. Scientific research Moray made significant contributions to the observation of tidal phenomena. Shortly before the restoration of Charles II, he stayed for several weeks in the remote island of Great Bernera, in the Outer Hebrides, and observed that the normal semidiurnal tide was there combined with tidal streams between the nearby islands that exhibited a strong diurnal motion. Moray reported these "extraordinary tydes" to the Royal Society in 1665, which published them in the first volume