In Scotland prostitution itself (the exchange of sexual services for money) is legal, but associated activities (such as public solicitation, operating a brothel or other forms of pimping) are criminal offences.
a prostitute (whether male or female) who for the purposes of prostitution -
loiters in a public place
solicits in a public place or in any other place so as to be seen from a public place or
importunes any person in a public place
shall be guilty of an offence
Kerb crawling, soliciting a prostitute for sex in a public place and loitering for the same purpose are also criminal offences, with a maximum penalty of a £1000 fine, under the Prostitution (Public Places) (Scotland) Act 2007 (in force 15 October 2007) as follows:
A person (“A”) who, for the purpose of obtaining the services of a person engaged in prostitution, solicits in a relevant place commits an offence.
For the purposes of subsection (1) it is immaterial whether or not—
(a) A is in or on public transport,
(b) A is in a motor vehicle which is not public transport,
(c) a person solicited by A for the purpose mentioned in that subsection is a person engaged in prostitution.
3. A person (“B”) who loiters in a relevant place so that in all the circumstances it may reasonably be inferred that B was doing so for the purpose of obtaining the services of a person engaged in prostitution commits an offence.
4. For the purposes of subsection (3) it is immaterial whether or not—
(a) B is in or on public transport,
(b) B is in a motor vehicle which is not public transport.
5. A person guilty of an offence under subsection (1) or (3) is liable on summary conviction to a fine not exceeding level 3 on the standard scale.
6. In this section— ...
“motor vehicle” has the meaning given by section 185(1) of the Road Traffic Act 1988 (c. 52),
“public transport” means a vehicle, train, tram, ship, hovercraft, aircraft or other thing designed, adapted or used for the carriage of persons provided in connection with any of those services on which members of the public rely for getting from place to place when not relying on facilities of their own,
"relevant place" means—
(a) a public place within the meaning of section 133 of the Civic Government (Scotland) Act 1982 (c. 45),
(b) a place to which at the material time the public are permitted to have access (whether on payment or otherwise),
and in subsection (1) includes a place which is visible from a place mentioned in paragraph (a) or (b).
(a) keeps or manages or acts or assists in the management of a brothel; or
(b) being the tenant, lessee, occupier or person in charge of any premises, knowingly permits such premises or any part thereof to be used as a brothel or for the purposes of habitual prostitution; or
(c) being the lessor or landlord of any premises, or the agent of such lessor or landlord, lets the same or any part thereof with the knowledge that such premises or some part thereof are or is to be used as a brothel, or is willfully a party to the continued use of such premises or any part thereof as a brothel,
shall be guilty of an offence.
Third party activities, such as pimping, procuring and living off the avails are illegal under Part 7 (Procuring) and other sections of Part 11. of the act. .
Reforms to prostitution laws
An expert group was assembled in 2003 and produced a report in 2004 entitled Being Outside - Constructing a Response to Street Prostitution. The key proposals included replacing soliciting laws with 'offensive behaviour or conduct', applicable to both buyer or seller (obviating pressure to criminalise kerb crawling), and 'managed areas' in which the activity would take place. They also recommended a national framework to guide local authorities, a requirement for local implementation plans, and public education. 
A Prostitution Tolerance Zones Bill was introduced into the Scottish Parliament but failed to become law. Instead, the Parliament passed the Prostitution (Public Places) (Scotland) Act 2007 which leaves the law relating to prostitutes unchanged but introduces a new offence committed by their clients.
In April 2010, a plan to criminalize the customers, which had been introduced by Labour politicians, was rejected. A further attempt by Marlyn Glen (Labour) to introduce this (amendment 6) at Stage 3 was also voted down 78: 44 on June 30, 2010. 
A further attempt by Trish Godman (Labour) was made in 2011 but fell at dissolution. Yet another attempt was made by Rhoda Grant (Labour) was made in 2013 but was only supported by Labour MSPs and therefore did not receive cross-party support.