Complex sentence: These restrictions and controls were designed to control the widespread male and female prostitution of the Edo period (1603--1868), and did not derive from a moral opposition to prostitution, but out of a desire to compartmentalize certain types of activity within the cities.
Split into simpler sentences: These restrictions and controls were designed to control the widespread male and female prostitution of the Edo period (1603--1868). They did not derive from a moral opposition to prostitution but out of a desire to compartmentalize certain types of activity within the cities.