Dissatisfied with the imitations of ancient ballads in the third volume of "The Border Minstrelsy," Hogg proceeded to embody some curious traditions in this kind of composition. He transmitted specimens to Scott, who warmly commended them, and suggested their publication. The result appeared in the "Mountain Bard," a collection of poems and ballads, which he published in 1803, prefixed with an account of his life. From the profits of this volume, with the sum of eighty-six pounds paid him by Constable for the copyright of his two treatises on sheep, he became master of three hundred pounds. With this somewhat startling acquisition, visions of prosperity arose in his ardent and enthusiastic mind. He hastily took in lease the pastoral farm of Corfardin, in the parish of Tynron, Dumfriesshire, to which he afterwards added the lease of another large farm in the same neighbourhood. Misfortune still pursued him; he rented one of the farms at a sum exceeding its value, and his capital was much too limited for stocking the other, while a disastrous murrain decimated his flock. Within the space of three years he was again a penniless adventurer. Removing from the farm-homestead of Corfardin, he accepted the generous invitation of his hospitable neighbour, Mr James Macturk of Stenhouse, to reside in his house till some suitable employment might occur. At Stenhouse he remained three months; and he subsequently acknowledged the generosity of his friend, by honourably celebrating him in the "Queen's Wake." Writing to Mr Macturk, in 1814, he remarks, in reference to his farming at Corfardin, "But it pleased God to take away by death all my ewes and my lambs, and my long-horned cow, and my spotted bull, for if they had lived, and if I had kept the farm of Corfardin, I had been a lost man to the world, and mankind should never have known the half that was in me. Indeed, I can never see the design of Providence in taking me to your district at all, if it was not to breed my acquaintance with you and yours, which I hope will be one source of happiness to me as long as I live. Perhaps the very circumstance of being initiated into the mysteries of your character,[29] is of itself a sufficient compensation for all that I suffered in your country."

Disappointed in obtaining an ensigncy in a Militia Regiment, through the interest of Sir Walter Scott, and frustrated in every other attempt to retain the social position he had gained, he returned to Ettrick, once more to seek employment in his original occupation. But if friendship had somewhat failed him, on his proving unsuccessful at Ettrick-house, his prestige was now completely gone; old friends received him coldly, and former employers declined his services. He found that, till he should redeem his reputation for business and good management, there was no home for him in Ettrick Forest. Hogg was not a man who would tamely surrender to the pressure of misfortune: amidst his losses he could claim the strictest honesty of intention, and he was not unconscious of his powers. With his plaid over his shoulders, he reached Edinburgh in the month of February 1810, to begin, in his fortieth year, the career of a man of letters. The scheme was singularly adventurous, but the die was cast; he was in the position of the man on the tread-wheel, and felt that he must write or perish.

It affords no matter of surprise that the Shepherd was received coldly by the booksellers, and that his offers of contributing to their periodicals were respectfully declined. His volume, "The Mountain Bard," had been forgotten; and though his literary fitness had been undisputed, his lengthened want of success in life seemed to imply a doubt of his general steadiness. Mr Constable, his former publisher, proved the most friendly; he consented to publish a collection of songs and ballads, which he had prepared, two-thirds being his own composition, and the remainder that of his ingenious friends. This publication, known as "The Forest Minstrel," had a slow sale, and conferred no benefit on the unfortunate author. What the booksellers would not do for him, Hogg resolved to do for himself; he originated a periodical, which he designated "The Spy," acting as his own publisher. The first number of this publication—a quarto weekly sheet, price fourpence—was issued on the first of September 1810. With varied popularity, this paper existed during the space of a year; and owing to the perseverance of the conductor might have subsisted a longer period, but for a certain ruggedness which occasionally disfigured it. As a whole, being chiefly the composition of a shepherd, who could only read at eighteen, and write at twenty-six, and who, to use his own words, "knew no more of human life or manners than a child," the work presented a remarkable record in the annals of literature. As a business concern, it did not much avail the projector, but it served indirectly towards improving his condition, by inducing the habit of composing readily, and with undeviating industry. A copy of "The Spy" is now rare.

From his literary exertions, Hogg was long, subsequent to his arrival in the metropolis, in deriving substantial pecuniary emolument. In these circumstances, he was fortunate in the friendship of Mr John Grieve, and his partner Mr Henry Scott, hat manufacturers in the city, who, fully appreciating his genius, aided him with money so long as he required their assistance. These are his own words, "They suffered me to want for nothing, either in money or clothes, and I did not even need to ask these." To Mr Grieve, Hogg was especially indebted; six months he was an inmate of his house, and afterwards he occupied comfortable lodgings, secured him by his friend's beneficence. Besides these two invaluable benefactors, the Shepherd soon acquired the regard and friendship of several respectable men of letters, both in Edinburgh and elsewhere. As contributors to "The Spy," he could record the names of James Gray of the High School, and his accomplished wife; Thomas Gillespie, afterwards Professor of Humanity in the University of St Andrews; J. Black, subsequently of the Morning Chronicle; William Gillespie, the ingenious minister of Kells; and John Sym, the renowned Timothy Tickler of the "Noctes." Of these literary friends, Mr James Gray was the more conspicuous and devoted. This excellent individual, the friend of so many literary aspirants, was a native of Dunse, and had the merit of raising himself from humble circumstances to the office of a master in the High School of Edinburgh. Possessed of elegant and refined tastes, an enthusiastic admirer of genius, and a poet himself,[30] Mr Gray entertained at his table the more esteemed wits of the capital; he had extended the hand of hospitality to Burns, and he received with equal warmth the author of "The Forest Minstrel." In the exercise of disinterested beneficence, he was aided and encouraged by his second wife, formerly Miss Peacock, who sympathised in the lettered tastes of her husband, and took delight in the society of men of letters. They together made annual pedestrian excursions into the Highlands, and the narrative of their adventures proved a source of delightful instruction to their friends. Mr Gray, after a lengthened period of residence in Edinburgh, accepted, in the year 1821, the Professorship of Latin in the Institution at Belfast; he subsequently took orders in the Church of England, and proceeded to India as a chaplain. In addition to his chaplaincy, he held the office of preceptor to one of the native princes of Hindostan. He died at Bhoog, in the kingdom of Cutch, on the 25th of September 1830; and if we add that he was a man of remarkable learning, his elegy may be transcribed from the "Queen's Wake:"—

"Alike to him the south and north,
So high he held the minstrel worth;
So high his ardent mind was wrought,
Once of himself he never thought."

As the circle of the poet's friends increased, a scheme was originated among them, which was especially entertained by the juniors, of establishing a debating society for mutual improvement. This institution became known as the Forum; meetings were held weekly in a public hall of the city, and strangers were admitted to the discussions on the payment of sixpence a-head. The meetings were uniformly crowded; and the Shepherd, who held the office of secretary, made a point of taking a prominent lead in the discussions. He spoke once, and sometimes more frequently, at every meeting, making speeches, both studied and extemporaneous, on every variety of theme; and especially contributed, by his rough-spun eloquence, to the popularity of the institution. The society existed three years; and though yielding the secretary no pecuniary emolument, proved a new and effective mean of extending his acquaintance with general knowledge.

Hogg now took an interest in theatricals, and produced two dramas, one of which, a sort of musical farce, was intended as a burlesque on the prominent members of the Forum, himself included. This he was induced, on account of the marked personalities, to confine to his repositories; he submitted the other to Mr Siddons, who commended it, but it never was brought upon the stage. He was about to appear before the world in his most happy literary effort, "The Queen's Wake,"—a composition suggested by Mr Grieve. This ingenious individual had conceived the opinion that a republication of several of the Shepherd's ballads in "The Spy," in connexion with an original narrative poem, would arrest public attention as to the author's merits; while a narrative having reference to the landing of the beautiful and unfortunate Queen Mary, seemed admirably calculated to induce a general interest in the poem. The proposal, submitted to Allan Cunningham and Mr Gray, received their warm approbation; and in a few months the entire composition was ready for the press. Mr Constable at once consented to undertake the publication; but a more advantageous offer being made by Mr George Goldie, a young bookseller, "The Queen's Wake" issued from his establishment in the spring of 1813. Its success was complete; two editions were speedily circulated, and the fame of the author was established. With the exception of the Eclectic Review, every periodical accorded its warmest approbation to the performance; and vacillating friends, who began to doubt the Shepherd's power of sustaining the character he had assumed as a poet and a man of letters, ceased to entertain their misgivings, and accorded the warmest tributes to his genius. A commendatory article in the Edinburgh Review, in November 1814, hailed the advent of a third edition.

By the unexpected insolvency of his publisher, while the third edition was in process of sale, Hogg had nearly sustained a recurrence of pecuniary loss. This was, however, fortunately prevented by the considerate beneficence of Mr Goldie's trustees, who, on receiving payment of the printing expenses, made over the remainder of the impression to the author. One of the trustees was Mr Blackwood, afterwards the celebrated publisher of Blackwood's Edinburgh Magazine. Hogg had now attained the unenviable reputation of a literary prodigy, and his studies were subject to constant interruption from admirers, and the curious who visited the capital. But he gave all a cordial reception, and was never less accessible amidst the most arduous literary occupation. There was one individual whose acquaintance he was especially desirous of forming; this was John Wilson, whose poem, "The Isle of Palms," published in 1812, had particularly arrested his admiration. Wilson had come to reside in Edinburgh during a portion of the year, but as yet had few acquaintances in the city. He was slightly known to Scott; but a peculiarity of his was a hesitation in granting letters of introduction. In despair of otherwise meeting him, Hogg, who had reviewed his poem in the Scots Magazine, sent him an invitation to dinner, which the Lake-poet was pleased cordially to accept. That dinner began one of the most interesting of the Shepherd's friendships; both the poets were pleased with each other, and the closest intimacy ensued. It was on his way to visit Wilson, at Elleray, his seat in Cumberland, during the autumn of 1814, that the Shepherd formed the acquaintance of the Poet-laureate. He had notified to Southey his arrival at one of the hotels in Keswick, and begged the privilege of a visit. Southey promptly acknowledged his summons, and insisted on his remaining a couple of days at Greta Hall to share his hospitality. Two years could not have more firmly rivetted their friendship. As a mark of his regard, on returning to Edinburgh Hogg sent the Laureate the third edition of "The Queen's Wake," then newly published, along with a copy of "The Spy." In acknowledging the receipt of these volumes, Southey addressed the following letter to the Shepherd, which is now for the first time published:—

"Keswick, December 1, 1814.

"Dear Hogg,—Thank you for your books. I will not say that 'The Queen's Wake' has exceeded my expectations, because I have ever expected great things from you, since, in 1805, I heard Walter Scott, by his own fireside at Ashestiel, repeat 'Gilmanscleuch.'[31] When he came to that line—'I ga'e him a' my goud, father'—the look and the tone with which he gave it were not needed to make it go through me. But 'The Wake' has equalled all that I expected. The improvements in the new edition are very great, and they are in the two poems which were most deserving of improvement, as being the most impressive and the most original. Each is excellent in its way, but 'Kilmeny' is of the highest character; 'The Witch of Fife' is a real work of fancy—'Kilmeny' a fine one of imagination, which is a higher and rarer gift. These poems have given general pleasure throughout the house; my eldest girl often comes out with a stanza or two of 'The Witch,' but she wishes sometimes that you always wrote in English. 'The Spy' I shall go through more at leisure.