Borgo Maggiore is one of the 9 communes or castelli of San Marino. It lies at the foot of Monte Titano and has a population of 6,871, making it the second largest town of San Marino, after Dogana.