If you are a citizen of a country outside the EU/EEA, or are an EU citizen without the right of residence, in most cases you need a residence permit to live with someone in Sweden.
If you have previously held a permanent residence permit in Sweden
If you have previously lived in Sweden with a permanent residence permit, you can be granted a residence permit because you have ties to Sweden. Your connection to Sweden depends largely on how long you previously lived here.
If you have Swedish ancestry
In exceptional cases, people of Swedish origin can be granted a residence permit. This applies to people who previously had Swedish citizenship but lost it, as well as to people who have parents or grandparents with Swedish citizenship.
To be granted a residence permit, it is not enough that you have Swedish ancestry. You must also be able to show your ties to Sweden by having spent lengthy periods in the country, having Swedish education, or through your knowledge of the Swedish language.
When the Swedish Migration Agency examines your application, we will also take into account whether you have your own family in your country of origin or other strong ties to your country of origin. Your connection to Sweden will then be compared with your ties to your country of origin.