Permit AM for mopeds and vehicles for people with reduced mobility: 15 years (a moped driver may not carry a passenger until the age of 18)
Permit A1 (motorbikes with a maximum power of 11kW and an engine up to 125cc): 16 years
Permit A2 (motorbikes with a maximum power of 35kW a power-to-weight ratio of under 0.2kW/kg): 18 years
Permit A (all motorbikes, with at least two years experience driving motorbikes of category A1 vehicles): 20 years
Permit B (vehicles with a maximum weight of 3,500 Kg and with a maximum of 9 seats including the driver’s): 18 years
Permit C (vehicles with weight over 3,500 Kg): 21 years
Permit C1 (vehicles between 3,500kg and 7,500kg carrying no more than 8 passengers plus driver with trailer up to 750kg)
Permit D (vehicles for the transport of passengers): 24 years
Permit BTP – special purpose vehicles like ambulance, school transport buses, fire truck, police vehicles and taxis – must have had Permit B for at least a year.
BE, CE, DE as B, C and D but with trailer over 750 kg.
Further codes, re medical causes etc. HERE
NOTE:
Note 1: Provisional licences do not exist in Spain and provisional licences from other EU countries are therefore not valid to drive here.
Note II, with a Licence B you are allowed to drive mopeds and micro cars as well, and once you´ve held it for 3 years minimum, motor cycles up to 125 cc too.