The branches of state government are established by a state's constitution.
A state government refers to the government of a country subdivision in a federal type of government, which shares political power with the federal or national government. A state government can have certain level of political autonomy, or be subject to the direct control of the federal government. A constitution defines this relationship.