There are three different names given to hotel-like accommodation in large cities in Spain, they are Hotel, Hostal and Pension. It is important not to confuse a hostel with a hostal:
A hostel offers backpacker-type accommodation with shared rooms, whereas a hostal is very similar to a guest house and is generally cheaper than a hotel.