 The first native Croatian ruler recognised by the Pope was Duke Branimir, who received papal recognition from Pope John VIII on 7 June 879.Tomislav was the first king of Croatia, styled as such in a letter of Pope John X in 925.Tomislav defeated Hungarian and Bulgarian invasions, spreading the influence of Croatian kings.