 In 1548, Cosimo was given Elba by Charles V, and based his new developing navy there.Cosimo founded the port city of Livorno and allowed the city's inhabitants to enjoy freedom of religion.In alliance with Spain and the Holy Roman Empire, Cosimo defeated the Republic of Siena, which was allied with France, in the Battle of Marciano on August 2, 1554.