MSPs pass the Scottish Elections (Franchise and Representation) Bill, which will give some prisoners the vote.
The passing of this bill is a historic moment in the history of the Scottish Parliament, as it is the first legislation that required a super majority (two thirds of all MSPs) to back it.
92 MSPs voted to pass the bill reaching the required super majority, with 27 voting against it.
The bill extends the electoral franchise in local and Scottish elections to prisoners serving a sentence of less than 12 months, as well as anyone legally resident in Scotland including refugees and those granted asylum (but not asylum seekers).
Constitution, Europe and External Affairs Secretary Michael Russell said this "radical and progressive bill" shows Scotland welcomes those who want to live here.
Extending voting rights to prisoners serving a sentence of up to one year was the most popular option to emerge from the consultation, Mr Russell adds.
Tory efforts to block what Tory MSP Adam Tomkins called the "horrible" proposal to give prisoners the vote failed.
Scottish Green efforts to make the threshold for prisoners not being able to vote a sentence of four years or also failed, as did their efforts to enfranchise asylum seekers.
The passing of this bill is a historic moment in the history of the Scottish Parliament, as it is the first legislation that required a super majority, or two thirds of all MSPs, to back it.