 It was governed at first directly by its bishop, but episcopal power declined during the 12th century.The bishop was forced to concede a greater say in the running of the city to the nobility in exchange for their help during a territorial dispute with Arezzo, and this started a process which culminated in 1167 when the commune of Siena declared its independence from episcopal control.By 1179, it had a written constitution.