Context: A total of 62 teams have competed in La Liga since its inception. Nine teams have been crowned champions, with Real Madrid winning the title a record 33 times and Barcelona 25 times. After Athletic Bilbao claimed several titles in the league's early years, Real Madrid dominated the championship from the 1950s through to the 1980s, when Athletic and neighbours Real Sociedad each won the league twice. From the 1990s onwards, Barcelona (15 titles) and Real Madrid (9 titles) were both prominent, though La Liga also saw other champions, including Atletico Madrid, Valencia, and Deportivo de La Coruna. In the 2010s, Atletico Madrid became increasingly strong, forming a trio alongside Real Madrid and Barcelona which occupied the podium places exclusively.

Question: who has more league titles real madrid or barcelona?
Steam of consciousness below:
To answer this question, we should know that: Nine teams have been crowned champions, with Real Madrid winning the title a record 33 times and Barcelona 25 times.
So, the answer is Real Madrid.