If you do not have legal residence, a country can deport you. You will be sent back to your country of origin or to another country where you can legally reside.