I realise this is quite a big topic, so particular historical examples are fine.
As you note, this is a very broad topic, and there is no one answer that is common across all countries and cultures. You will find more success in getting an answer to your question if you specify a particular area and time period.
The FAQ has links to quite a few previously answered questions on this topic. You can find them here.