Marriage does not make an illegal immigrant legal, they still have to apply for citizenship. There is a legal way to live here while you apply for citizenship, it is called a visa, and has to be renewed now and again.. . I don't believe you can gain citizenship if you are here illegally, you must have documentation of your time here, this is why you have to have a visa and show that you have a job, etc.