The federal subjects are divided into oblasts, republics, krais, autonomous okrugs, federal cities and autonomous oblasts. Republics are generally independent, each having its own constitution and legislature. They are meant to be home to a certain ethnic minority. The republics can also set their own official language.