Spain is part of the European Union, so the standard travel rules apply for the citizens of the UK and Ireland: you can stay in Spain for up to 90 days in any 180-day period without a visa.