Madrid remained in Republican hands for most of the war , but the government was evacuated in the early stages of a nationalist siege that lasted until March 1939 .
Madrid was vastly important for the Republicans and thus should not be lost .