Boswell returned to London in February 1766 accompanied by Rousseau's mistress, with whom he had a brief affair on the journey home.
After spending a few weeks in the capital, he returned to Scotland, buying (or perhaps renting) the former house of David Hume on James Court on the Lawnmarket.
He studied for his final law exam at Edinburgh University.
He passed the exam and became an advocate.
He practised for over a decade, during which time he spent no more than a month every year with Johnson.
Nevertheless, he returned to London annually to mingle with Johnson and the rest of the London literary crowd, and to escape his mundane existence in Scotland.
He found enjoyment in playing the intellectual rhyming game crambo with his peers.

Some of his journal entries and letters from this period describe his amatory exploits.
Thus, in 1767, in a letter to William Johnson Temple, he wrote, "I got myself quite intoxicated, went to a Bawdy-house and past a whole night in the arms of a Whore.
She indeed was a fine strong spirited Girl, a Whore worthy of Boswell if Boswell must have a whore."
A few years earlier, he wrote that during a night with an actress named Louisa, "five times was I fairly lost in supreme rapture.
Louisa was madly fond of me; she declared I was a prodigy and asked me if this was not extraordinary for human nature."
Though he sometimes used a condom for protection, he contracted venereal disease at least seventeen times.

Boswell was a major supporter of the Corsican Republic.
Following the island's invasion by France in 1768, Boswell attempted to raise public awareness and rally support for the Corsicans.
He sent arms and money to the Corsican fighters, who were ultimately defeated at the Battle of Ponte Novu in 1769.
Boswell attended the masquerade held at the Shakespeare Jubilee in Stratford-upon-Avon in September 1769 dressed as a Corsican Chief.

Boswell married his cousin, Margaret Montgomerie, in November 1769.
She remained faithful to Boswell, despite his frequent liaisons with prostitutes, until her death from tuberculosis in 1789.
After his infidelities, he would deliver tearful apologies to her and beg her forgiveness, before again promising her, and himself, that he would reform.
James and Margaret had four sons and three daughters.
Two sons died in infancy; the other two were Alexander (1775–1822) and James (1778–1822).
Their daughters were Veronica (1773–1795), Euphemia (1774 – c. 1834) and Elizabeth, known as 'Betsy', (1780–1814).
Boswell also had at least two extramarital children, Charles (1762–1764) and Sally (1767 – c. 1768).

Despite his relative literary success with accounts of his European travels, Boswell was only a moderately successful advocate, with the exception of the copyright infringement case of Donaldson v Beckett, where Boswell represented the Scottish bookseller Alexander Donaldson.
By the late 1770s, Boswell descended further and further into alcoholism and gambling addiction.
Throughout his life, from childhood until death, he was beset by severe swings of mood.
His depressions frequently encouraged, and were exacerbated by, his various vices.
His happier periods usually saw him relatively vice-free.
His character mixed a superficial Enlightenment sensibility for reason and taste with a genuine and somewhat romantic love of the sublime and a propensity for occasionally puerile whimsy.
The latter, along with his tendency for drink and other vices, caused many contemporaries and later observers to regard him as being too lightweight to be an equal in the literary crowd that he wanted to be a part of.
However, his humour and innocent good nature won him many lifelong friends.

In 1773 Boswell bought the house of David Hume (who moved to a new house on South St David Street/St Andrew Square) on the south east corner of James Court.
He lived there until 1786.
 Boswell's residency at James Court has been well established, but not the exact location.
 For example, a later edition of Traditions of Edinburgh by Robert Chambers suggests that Boswell's residence at James Court was actuall
Boswell returned to London in February 1766 accompanied by Rousseau's mistress, with whom he had a brief affair on the journey home. After spending a few weeks in the capital, he returned to Scotland, buying (or perhaps renting) the former house of David Hume on James Court on the Lawnmarket. He studied for his final law exam at Edinburgh University. He passed the exam and became an advocate. He practised for over a decade, during which time he spent no more than a month every year with Johnson. Nevertheless, he returned to London annually to mingle with Johnson and the rest of the London literary crowd, and to escape his mundane existence in Scotland. He found enjoyment in playing the intellectual rhyming game crambo with his peers.
Some of his journal entries and letters from this period describe his amatory exploits. Thus, in 1767, in a letter to William Johnson Temple, he wrote, "I got myself quite intoxicated, went to a Bawdy-house and past a whole night in the arms of a Whore. She indeed was a fine strong spirited Girl, a Whore worthy of Boswell if Boswell must have a whore." A few years earlier, he wrote that during a night with an actress named Louisa, "five times was I fairly lost in supreme rapture. Louisa was madly fond of me; she declared I was a prodigy and asked me if this was not extraordinary for human nature." Though he sometimes used a condom for protection, he contracted venereal disease at least seventeen times.
Boswell was a major supporter of the Corsican Republic. Following the island's invasion by France in 1768, Boswell attempted to raise public awareness and rally support for the Corsicans. He sent arms and money to the Corsican fighters, who were ultimately defeated at the Battle of Ponte Novu in 1769. Boswell attended the masquerade held at the Shakespeare Jubilee in Stratford-upon-Avon in September 1769 dressed as a Corsican Chief.
Boswell married his cousin, Margaret Montgomerie, in November 1769. She remained faithful to Boswell, despite his frequent liaisons with prostitutes, until her death from tuberculosis in 1789. After his infidelities, he would deliver tearful apologies to her and beg her forgiveness, before again promising her, and himself, that he would reform. James and Margaret had four sons and three daughters. Two sons died in infancy; the other two were Alexander (1775–1822) and James (1778–1822). Their daughters were Veronica (1773–1795), Euphemia (1774 – c. 1834) and Elizabeth, known as 'Betsy', (1780–1814). Boswell also had at least two extramarital children, Charles (1762–1764) and Sally (1767 – c. 1768).
Despite his relative literary success with accounts of his European travels, Boswell was only a moderately successful advocate, with the exception of the copyright infringement case of Donaldson v Beckett, where Boswell represented the Scottish bookseller Alexander Donaldson. By the late 1770s, Boswell descended further and further into alcoholism and gambling addiction. Throughout his life, from childhood until death, he was beset by severe swings of mood. His depressions frequently encouraged, and were exacerbated by, his various vices. His happier periods usually saw him relatively vice-free. His character mixed a superficial Enlightenment sensibility for reason and taste with a genuine and somewhat romantic love of the sublime and a propensity for occasionally puerile whimsy. The latter, along with his tendency for drink and other vices, caused many contemporaries and later observers to regard him as being too lightweight to be an equal in the literary crowd that he wanted to be a part of. However, his humour and innocent good nature won him many lifelong friends.
In 1773 Boswell bought the house of David Hume (who moved to a new house on South St David Street/St Andrew Square) on the south east corner of James Court. He lived there until 1786.  Boswell's residency at James Court has been well established, but not the exact location.  For example, a later edition of Traditions of Edinburgh by Robert Chambers suggests that Boswell's residence at James Court was actuall
James Boswell