Over a period of many centuries crucial in Spanish history, Madrid's significance was negligible.
Madrid was not always very important to Spanish history.
A small child is jumping up and down on the ground to get someone's attention.