Recruits to the guards must be unmarried Swiss Catholic males between 19 and 30 years of age who have completed basic training with the Swiss Armed Forces.The Pontifical Swiss Guard has its origins in the 15th century. Pope Sixtus IV (1471–1484) had already made an alliance with the Swiss Confederacy and built barracks in Via Pellegrino after foreseeing the possibility of recruiting Swiss mercenaries.