When was Sweden Founded?

Sweden was first founded at the end of the 11th century. During 1397-1523 Sweden was in a personal union with Denmark and Norway, and Denmark was the leading union.