LONDON — Amsterdam is to ban guided tours of its notorious red-light district, the latest move by the city to tackle overcrowding and improve working conditions for prostitutes in the area.

“We are banning tours that take visitors along sex workers’ windows, not only because we want to prevent overcrowding in the red-light district, but also because it is not respectful to sex workers,” Udo Kock, Amsterdam’s deputy mayor, said in a statement on Wednesday.

“It is outdated to treat sex workers as a tourist attraction,” he added.

The ban will come into effect on Jan. 1, as will bans on free tours and on soliciting visitors to take part in tours, the statement said.

Although Amsterdam, the Dutch capital, has distinctive cultural gems — galleries, museums, restaurants and its iconic canals, to mention just a few — for decades, tourists have also been attracted to the city for the marijuana and prostitution, both of which are largely legal there.