===Ancona===Included in the Papal States since 774, Ancona came under the influence of the Holy Roman Empire around 1000, but gradually gained independence to become fully independent with the coming of the communes in the 12th century.