When the Valyrian Empire fell, the Tyroshi killed the dragons and dragonlords left in their city. They built their system of government and gained independence to become a Free City.