This title was created for Charles Middleton, 1st Baron Barham, who succeeded Henry Dundas, 1st Viscount Melville as First Lord of the Admiralty. Lord Barham was also the uncle of Admiral Lord Gambier (James Gambier, 1st and last Baron Gambier).
Since Lord Barham had no sons, the title passed by special remainder to his daughter Diana, wife of Sir Gerard Noel Edwardes, later Noel, 2nd Bt, himself the son of Sir Gerard Anne Edwardes (son of Lord Anne Douglas-Hamilton, a younger son of the 4th Duke of Hamilton and his alleged first wife Mary Edwardes, an heiress who repudiated this marriage). Diana's husband took the name Noel after his mother's family, who had been earls of Gainsborough.
On Diana's death, the title passed to her eldest son Charles Noel (formerly Edwardes), who thus became 3rd Baron Barham during his father's lifetime. The younger Lord Barham was created 1st Earl of Gainsborough in 1841. Diana, Lady Barham also had several other children, and her heirs male are all in remainder to the Barham barony if not the earldom of Gainsborough (which can pass only to the heirs male of her eldest son).
Charles Middleton, 1st BaronBarham (October 14, 1726 – June 17, 1813) was a British sailor and politician.
He was finally, in 1805, appointed First Lord of the Admiralty, and was created BaronBarham, of Barham Court and Teston in the County of Kent, with a special remainder, failing his male issue, to his only daughter and her heirs male.
In September 1805, Lord Barham attained the rank of Admiral of the Red.