If you only have three days and want maximum urban intensity, Madrid is hard to beat.
If you want coastline or Modernisme architecture as your main theme, Barcelona may fit better — see our Barcelona 3-day guide.
If you want a regional loop with smaller cities and wine routes, consider the 7-day Community of Madrid guide once you want to expand beyond the capital.
