Meanwhile , Madrid enjoyed brief prominence in 1308 when king Ferdinand IV and his Cortes , an early version of parliament , held a formal meeting in the fledgling town .
Madrid was prominent in 1308 when king ferdinand IV had a meeting there .