In the Middle Ages it was owned by the Dukes of Biandrate and, in the 17th century, by Spain.
This passage describes a change in ownership over time: from the Dukes of Biandrate to Spain, highlighting a historical shift in control.