Gormaz was the largest fortress in Europe after its expansion in 956 AD. It is without a doubt the greatest example of military architecture, not only in Soria but in the entire Spanish territory. The original castle was built shortly after 756 AD by emir Abd ar-Rahman I of Córdoba, as part of a state ('dawla') policy to control rich landowners and peasants, as well as to try to govern and protect the Central Marches in the Douro Valley against the Christians to the North. In 965, Caliph al-Hakem II rebuilt and expanded the castle, as attested by an inscription over one of the gates.
The castle is more than 390 metres long though only 10-40 metres wide, has 28 towers, a main gate with a monumental horseshoe arch with remains of painted red and white voussoirs, two posterns, one of which with a small horseshoe arch, three mihrabs corresponding to a 'musalla' or open air collective oratory, use of 'spoliae' of the Roman period, and the remains of a water pool near the monumental gate mentioned before. It was repaired in the 14th century, from which time date the remains of two gates on the southern side.
References:Goryōkaku (五稜郭) (literally, 'five-point fort') is a star fort in the Japanese city of Hakodate on the island of Hokkaido. The fortress was completed in 1866. It was the main fortress of the short-lived Republic of Ezo.
Goryōkaku was designed in 1855 by Takeda Ayasaburō and Jules Brunet. Their plans was based on the work of the French architect Vauban. The fortress was completed in 1866, two years before the collapse of the Tokugawa Shogunate. It is shaped like a five-pointed star. This allowed for greater numbers of gun emplacements on its walls than a traditional Japanese fortress, and reduced the number of blind spots where a cannon could not fire.
The fort was built by the Tokugawa shogunate to protect the Tsugaru Strait against a possible invasion by the Meiji government.
Goryōkaku is famous as the site of the last battle of the Boshin War.