Over a period of many centuries crucial in Spanish history, Madrid's significance was negligible.
Madrid was not always very important to Spanish history.