The history of Bavaria stretches from its earliest settlement and its formation as a stem duchy in the 6th century through its inclusion in the Holy Roman Empire to its status as an independent kingdom and finally as a large Bundesland (state) of the modern Federal Republic of Germany.