On 28 March the Nationalists occupied Madrid and, by 31 March, they controlled all Spanish territory.