Ah :) Now we are getting somewhere. Speaking for Christianity: Illegal; because it is adultery. That was on Moses' surviving tablets and later re-confirmed by Jesus. In Islam and Buddhism it is also unwanted, but I know of no specific reference or 'illegality-status'.
Update. I think most religions punish you for having sex at all... But they don't make any real laws in most of the world.
Scroll Down to Read Other Opinions