Wigtown (/ˈwɪɡtənˌ -taʊn/ (both used locally); Scottish Gaelic: Baile na h-Ùige) is a town and former royal burgh in Wigtownshire, of which it is the county town, within the Dumfries and Galloway region in Scotland. It lies east of Stranraer and south of Newton Stewart. It is known as "Scotland's National Book Town" with a high concentration of second-hand book shops and an annual book festival. Wigtown is part of the Machars peninsula.