The documentation required to travel to Spain varies according to the country of origin.
If you are a citizen of the EU, Switzerland, Norway, Iceland or Liechtenstein: you will need a valid passport or ID card. Additionally, in the case of a minor travelling with an ID document, this must be accompanied by written permission from the parents.
If you come from another country:
The maximum stay in Spain is 90 days