A 200-year-old mansion which helped inspire the author of the classic children's novel Peter Pan has gone up for sale.

The Moat Brae building, located in Dumfries, had been operating as a children's literature centre and is due to close this Friday.

Peter Pan Moat Brae Trust (PPMBT) confirmed earlier this month that the listed building, where gardens helped to inspire JM Barrie to write the children’s literature classic, had been losing money for an “extended period”.

READ MORE: Scottish islands ranked as one of best holiday destinations in the world

It has been reported that the trustees had tried "every possible effort" to keep the building open but a lack of funding and donations has ultimately led to the closure of the site.

The Georgian mansion was saved from demolition and underwent a multi-million-pound refurbishment before opening to the public in 2019.

It is now listed as an "extensively refurbished category B listed building" by Shepherd Chartered Surveyors who are entrusted with the sale of the property.

There is no current price listed for the building, but they are open to offers as the listing says the mansion could be converted into a variety of businesses including a cafe, function suite, exhibition space and kitchen.

Barrie lived in Dumfries from 1873 to 1878 and originally wrote Peter Pan as a play in 1904.

During his time in the town, the author often visited Moat Brae and went on to say that the gardens were “enchanted lands” to him and were partly responsible for the inspiration of the world of Peter Pan.