It will depend on the legal structure, according to company law you need the following:
- Address in Spain
- Company bylaws
- Company deed certified by a Notary
- Designate a company director and administrator
- A resident staff member in Spain
- Share capital
- Personal Identification numbers (NIE or DNI)
- Company identification number (NIF)
- Social Security number