Hogg had little education and spent much of his youth as a shepherd. In 1807, Sir Walter Scott noticed his work and encouraged the publication of his poems, after which he was known as the Ettrick Shepherd. His most famous work is a religious fanatic's fictional autobiography, Confessions of a Justified Sinner (1824).