Many of the duties of local authorities duties to homeless people are set out in the Housing (Scotland) Act 1987 as amended.
The duties include a statutory responsibility to anyone threatened with or experiencing homelessness. By law, local authorities must offer a minimum of temporary accommodation, advice and assistance to all homeless households and those at risk of homelessness.
For example, they must assess the levels of homelessness in their area and produce homelessness strategies and provide information and advice about homelessness free of charge.
They also have a duty to ensure that housing and homelessness advice and assistance is provided to all people, free of charge, in their areas, and must consider the best interests of children (see the guidance on the Best Interests of Children).
More generally the Scottish Government publishes a statutory Code of Guidance on Homelessness, which councils must regard when carrying out their duties.