In the graphic comic (and I believe also the movie) Persepolis, Marjan Satrapi relates the story of how a friend/acquaintance of hers ended up in prison, was condemned to death, but first had to “marry” her jailer.
Yes, 'marry; - that's the term...