Take note of the universal emergency number: 112. You can also dial 062 for the Guardia Civil (Civil Guard) for mountain rescue services and other accidents.
Most beaches outside of the popular resort areas are unguarded, especially outside of the peak season, although flags are often used to indicate safety. Do not enter the water if there is a red flag, undercurrents can be extremely strong. Keep an eye out for jellyfish as well. The good news is that there are a huge number of blue flag beaches where you can be confident of clean water.
Forest fires are common in summer months. Be extra cautious when using cigarettes and glass bottles, and never leave them behind. Causing a fire is a criminal offence even if unintentional.
Most of Spain is safe with relatively low crime rates. Pickpockets may act in tourist areas though, as with any touristy region. Be careful in bars at night, leave valuables in your hotel and don’t leave wallets or mobile phones on show. Be cautious on beaches too – don’t leave bags unattended while you swim.