Legislation lifting the ban was put forth by the opposition in parliament, thinkSpain reported Saturday.
The legislation was then passed by the parliament, lifting the ban on brothels, escort agencies or individuals acting as prostitutes placing ads in classifieds in print or online in Spain, where prostitution is legal.
However, the conservative People's Party government is expected to seek some way of eventually outlawing advertising of this type, thinkSpain said.
Beyonce flaunts bikini body, Blue Ivy in vacation pics
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'