Dingwall is a town and former royal burgh in the Highland council area of Scotland. It was formerly an east-coast harbour but now lies inland. Dingwall Castle was once the biggest castle north of Stirling. On the town’s present-day outskirts lies Tulloch Castle, parts of which may date back to the 12th-century building. In 1411 the Battle of Dingwall is said to have taken place between the Clan Mackay and the Clan Donald. Dingwall formerly served as the county town of the county of Ross and Cromarty. It lies near the head of the Cromarty Firth where the valley of the Peffery unites with the alluvial lands at the mouth of the Conon, 14 miles (23 km) northwest of Inverness.