The Castle of Gruyères, located in the medieval town , is one of the most famous in Switzerland. The building was built between 1270 and 1282.