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