I recognize this answer will likely be different based on a specific time period and location, so please take in it whichever direction suits your area of expertise.
Thank you!
I've answered this question before for the Middle Ages, specifically western European Christians and Jews!