What are the consequenses for getting married to an illegal?

Thank you