The UK visa and immigration does not allow individuals to register marriage or gain a visa without proper documents being sought after. Hence, it is unlikely that any individual will be deported and simultaneously the marriage is being registered. Deportation simply means that you are no longer a citizen of the country and you are being moved out of the country with immediate effect as per the deportation sentence or order by the Home Office. There are certain grounds on which you can be deported from the UK, If you are living in the UK without a legal immigration status. If you are a British citizen but have been given a custodial sentence on committing a crime in the UK If you have been given a judgement by any UK court that your behaviour is conducive to public good and you are to be deported. If you have committed a serious crime and have been given the sentence for imprisonment of 12 months or more.
Read More: Can getting married stop deportation?