I am saying this because it was a fact in the United States. Laws specifically and unambiguously stated that rape was not a crime if the women was married to the man (and yes, it was gendered in the law). Hence the need for the laws to be changed starting in the late 1970's.
Some background: https://nortontooby.com/node/13251