Cardiff City Football Club is a professional association football club based in Cardiff, Wales. The club was founded in 1899 as Riverside A.F.C., by members of a local cricket club, joining the Cardiff &amp; District League the following year. In 1907, the side joined the South Wales Amateur League and changed its name to Cardiff City, later entering the English football league system by joining the Southern Football League in 1910, before being elected into the Football League in 1920. As of the end of the 2017–18 season, the club has won three division titles in the Football League, won promotion on 12 occasions and been relegated 12 times. The club has also achieved some success in domestic cup competitions, winning the FA Cup in 1927, reaching the final on two other occasions, reaching the 2012 League Cup final and winning the Welsh Cup on 22 occasions.