Difficult subject, I know, but it came up in a debate.

Is marital rape something that has ever been actually legal? What was the actual situation like? How was it made illegal, and when? Obviously if it did exist it's a bad thing, but if someone could give me the run-down on the subject that would be really good. I'm struggling to find any unbiased sources.