In 1296,
Thomas Rymer's
Foedera mentions a "Walter Edgar a person of Penicok south of Edenburgh", which logically can only be what is now called Penicuik. Penycook appears as the name on John Adair's map of 1682 and the ruined old parish church, in the centre of the graveyard, dates from the late 17th century. Penicuik became home to an early
paper mill, Valleyfield Mill, which was established by
Agnes Campbell in 1709. The Pomathorn Bridge was a
toll bridge across the
River Esk and the main route between
Edinburgh to the north and the
Scottish Borders to the south. "The Young Pretender",
Charles Edward Stuart, is recorded as having crossed the River Esk on his march south on 8 November 1745. The town was expanded as a
planned village, roughly based on
Edinburgh's New Town, by
Sir James Clerk, 3rd Baronet of Penicuik in 1770.
Glencorse Barracks, which is home to the
Royal Highland Fusiliers, 2nd Battalion
The Royal Regiment of Scotland, was established as a facility for incarcerating French
prisoners of war during the
Napoleonic Wars and was originally known as Greenlaw Military Prison when it was completed in 1803. Charles Cowan, who acquired Valleyfield Mill in 1779, sold it to the
War Office in order to create additional prisoner of war facilities in 1811. In 1830,
Alexander Cowan erected a monument, designed by
Thomas Hamilton, to the memory of 309 prisoners who died in the prisoner of war camps. Penicuik hosted the inaugural
Grand Match in
curling, between the north and the south of Scotland, in 1847. This took place on the "high pond" on the estate of
Penicuik House, not the "low pond" which is still used for curling on rare occasions. The town, whilst generally architecturally undistinguished, contains two masterpieces by
Frederick Thomas Pilkington: the South Church (originally the United Free Church, of 1862; and the flamboyant "Park End" houses on Bridge Street also of 1862. In 1889, a fire at the
Mauricewood Colliery resulted in the death of 63 men and boys, with only seven survivors. Its owners, The Schotts Iron Company, closed the pit following the disaster. The Cowan Institute, now known as
Penicuik Town Hall, was funded by the Cowan family and designed by
Campbell Douglas in 1893. The Dalmore paper mill on the North Esk river at
Auchendinny closed in 2004. ==Schools==