The Zähringer dynasty ended with the death of Berchtold V in 1218, and their cities subsequently became reichsfrei (essentially a city-state within the Holy Roman Empire), while the dukes of Kyburg competed with the house of Habsburg over control of the rural regions of the former Zähringer territory.