Legislation to end the right to buy has been ­introduced at the Scottish Parliament.

The Housing (Scotland) Bill is designed to retain social housing by preventing the sale of up to 15,500 homes over the next 10 years and to improve conditions in both social and private rented accommodation, the Scottish Government said.

Due to previous ­legislation and suspensions in some areas, right-to-buy is already unavailable to many people living in social housing, including new tenants and those in new-build property.

Right-to-buy will come to an end three years after the bill becomes law, which the Scottish Government hopes will happen next summer.

People wishing to own their home would be able to seek support from the Government through ­various shared equity schemes.

The Bill will also protect the private rented sector, which has more than doubled in size, from 5% of all homes in 1999 to 11% in 2011.

This will be achieved with some legal changes, which will see private-rented sector cases being moved from sheriff courts to a new First-Tier Tribunal, the introduction of regulations for letting agents and increasing the power of local authorities to report breaches of house condition standards.

There are around 3300 households in Scotland with people who live permanently in mobile or park homes, who are set to benefit from changes in mobile home site licensing.