Elrig (Scottish Gaelic: An Eileirg, meaning the deer run) is a clachan in the historical county of Wigtownshire in Dumfries and Galloway, Scotland. Located in the Machars peninsula, it is about 3 miles (4.8 km) north of Port William.
Elrig is the birthplace of author and naturalist Gavin Maxwell, who was born at the House of Elrig.  The house was built in 1912 for his parents Aymer and Lady Mary Maxwell by the architects John Stewart & George Paterson. His boyhood is recounted in The House of Elrig, published in 1965. The house and grounds of his family estate are private with no public access. 
The town's name derives from the original Gaelic placename, An Eilreig. The Gaelic language arrived in Galloway in the 7th century and the language was still strong in Wigtownshire in the 18th century.
A standing stone, the Carlin Stone, can be found on The Derry, near to the head of Elrig Loch, which is also home to the remains of a crannog. The ruins of a mediaeval chapel can be found at Barhobble, which is near to the House of Elrig. None of the above are within Elrig itself, but are located relatively near to the settlement in Mochrum Parish.
The council area of Port William, Dumfries and Galloway represents Barrachan, Port William, Mochrum and Monreith as well as Elrig. 885 people live in the area. There are 18 councillors that run the region and the council meets each month at the Talla MhicShuail in Port William. Elrig is in the 02 electoral district (Port William, Dumfries and Galloway) for the Comhairle na Roinne.
|Scottish Conservative Party||Roberta Tuckfield||859.3|
There is no rail service, but there is a bus service:
- 415 Newton Stewart - Machair.
- Maxwell, Gavin, 1914-1969. The house of Elrig. ISBN 9781906562762. OCLC 941069674.CS1 maint: multiple names: authors list (link)
- Transactions and Journal of Proceedings of the Dumfriesshire and Galloway Natural History and Antiquarian Society. Third Series. Volume XI: 147
- A' Chomhairle
- Còmhdhail na Comhairle
|Wikimedia Commons has media related to Elrig.|
- Loch Elrig Crannog at the Megalithic Portal