Before the Reformation, the present civil parish consisted of three parishes - Lasswade, Melville and Pentland - and the provostry of Roslin. Melville parish comprised the baronies of Melville and Lugton. In 1633, the barony of Melville which formed the greater part of the parish of Melville was united to Lasswade, and the barony of Lugton to Dalkeith.
Prior to the Reformation, the current civil parish encompassed three parishes: Lasswade, Melville, and Pentland, along with the provostry of Roslin. Melville Parish included the baronies of Melville and Lugton. In 1633, the larger portion of Melville Parish was combined with Lasswade, while Lugton's territory was incorporated into Dalkeith.