In some countries, (or administrative subdivisions within a country), prostitution is legal and regulated. In these jurisdictions, there is a specific law, which explicitly allows the practice of prostitution if certain conditions are met (as opposed to places where prostitution is legal only because there is no law to prohibit it).
In countries where prostitution is regulated, the prostitutes may be registered, they may be hired by a brothel, they may organize trade unions, they may be covered by workers' protection laws, their proceeds may be taxable, they may be required to undergo regular health checks, etc. The degree of regulation, however, varies very much by jurisdiction.
Such approaches are taken with the stance that prostitution is impossible to eliminate, and thus these societies have chosen to regulate it in an attempt to increase transparency and therefore reduce the more undesirable consequences. Goals of such regulations include controlling sexually transmitted disease, reducing sexual slavery, controlling where brothels may operate and dissociating prostitution from crime syndicates.
In countries where prostitution is legal and regulated, it is usual for the practice to be restricted to particular areas.
In countries where prostitution itself is legal, but associated activities are outlawed, prostitution is generally not regulated.